Skip to content

Can't disable labels in Magento#6

Open
bendechrai wants to merge 4 commits intovehiclefits:masterfrom
bendechrai:master
Open

Can't disable labels in Magento#6
bendechrai wants to merge 4 commits intovehiclefits:masterfrom
bendechrai:master

Conversation

@bendechrai
Copy link

Sorry for the first pull request - I hadn't synced my client's code with the forked repo. oops

Vehcle-Fits-Mangento stores the labels attribute as a string, which always evaluates as true when cast to a boolean. I've updated the core to accept either (bool) true, or 'true' (case insensitively).

Please consider pulling in :)

@kylecannon
Copy link
Member

Please make unit tests for the condition that you just fixed.

…which didn't work if the select element wasn't a direct child of the form. This now looks at all parent elements and takes the first occurence (closest parent).
@bendechrai
Copy link
Author

Hi Kyle. I've had a quick look, and I'll need to investigate more on how to change the configuration settings as part of the test, so I'll get round to this when I have some free time. Cheers.

@joshribakoff
Copy link
Member

I'll see if I can help write a test when I get chance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants