Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't disable labels in Magento #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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.

None yet

3 participants