Closed mpchadwick closed 8 years ago
Thanks for the PR! The additional check if $value
is true would fail for empty strings or strings starting with a "0"
.
How about changing the check for usesSource()
to check if the frontend input is select
or multiselect
?
@Vinai updated per your feedback.
@Vinai don't mean to be a pest, but I'm trying to install this on one of our sites, but it won't work until this issue is resolved.
Thanks for your effort!
Per #32
usesSource()
may incorrectly return true ifgetSource()
was previously called on the attribute.If we didn't get the value the first time around (perhaps due to the getSource issue) we try to fetch again using the mechanics that would be used for attributes without source models.