Closed (fixed)
Project:
Zen
Version:
7.x-5.x-dev
Component:
Miscellaneous
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2012 at 13:47 UTC
Updated:
1 Sep 2013 at 07:21 UTC
After turn off "Append a separator to the end of the breadcrumb" is disabled, in the theme settings form is the checkbox checked. The default value is ok, the theme_get_setting('zen_breadcrumb_trailing'), get the proper value, something in '#states' could be wrong.
Comments
Comment #1
johnalbinI don't quite understand the bug description.
Can you describe more fully what you did, what you expected to happen, and what you actually saw happen?
Comment #2
caschbre commentedI'm experiencing the same thing with 7.x-5.x (from today). If you go to the zen theme (or subtheme) settings page and scroll down to this setting...
"Append a separator to the end of the breadcrumb"
The value is checked. In my subtheme .info file I have:
settings[zen_breadcrumb_trailing] = 0
I can also remove the check and save the settings form... but every time the theme settings page loads, that value is checked.
Comment #3
johnalbinThe
settings[zen_breadcrumb_trailing] = 0is the default value for the setting. If you override it on the form, it will ignore the value in the .info file.But what you describe is definitely buggy behaviour. Unfortunately, it's not one I've encountered. And I haven't been able to reproduce it. :-(
Comment #4
echoz commentedI can reproduce this checkbox being re-checked upon reloading the settings screen, although the unchecked state had been respected, meaning I've unchecked "Append a separator to the end of the breadcrumb" and the separator is in fact not showing, even though the checkbox is showing rechecked when returning to the settings screen. Saving the settings screen for any subsequent reason without noticing that the separator checkbox has been unintentionally checked, will of course change your settings to append the separator. Bug :-(
Comment #5
johnalbinIn theme-settings.php, we have:
The states part is what is making the setting get changed. If you disable JS in your browser, the setting stays unchecked.
Looking at the code above, this looks like a core bug. The above code says to make zen_breadcrumb_trailing checkbox disabled and unchecked when zen_breadcrumb_title is checked. It does not say to do the opposite (make the checkbox checked when zen_breadcrumb_title is unchecked), but Drupal seems to be doing the opposite in addition to the desired behavior.
Comment #6
johnalbinHmm… It looks like the checked/unchecked is always a toggle effect. I'm sure the code used to behave differently, but whatever.
Comment #7
johnalbinFixed! http://drupalcode.org/project/zen.git/commitdiff/52a9b40