Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The string 'TRUE' does not check a checkbox, a boolean (or the integer 1) does. The current settings for does not display the default options the module has, so I marked this bug as 'Major'.
This might also explain the weird <strong>Default value => Checked</strong>
descriptions?
Comment | File | Size | Author |
---|---|---|---|
#7 | adminimal_admin_menu-better-booleans-2513970-7.patch | 2.76 KB | Samvel |
#5 | adminimal_admin_menu-better-booleans-2513970-5.patch | 2.76 KB | btopro |
|
Comments
Comment #1
MrHaroldA CreditAttribution: MrHaroldA at ezCompany commentedComment #3
MrHaroldA CreditAttribution: MrHaroldA at ezCompany commentedHere's another patch which includes some code style issues; this one should apply on the current codebase, but not when #2513984: Fix code standard issues is fixed.
Comment #4
MrHaroldA CreditAttribution: MrHaroldA at ezCompany commentedComment #5
btopro CreditAttribution: btopro commentedupdated patch to set all these to FALSE by default. The other issue beyond just 'TRUE' is that out of the box, the module is assuming the value is TRUE even though on the form it is assumed FALSE (because of the 'TRUE' not matching TRUE boolean for the checkbox). This results in a VERY confusing scenario where the form isn't setup to include the jquery / plugin, but the system defaults these to TRUE. So if you go to the form it shows FALSE (even though it's included) then if you save, it'll stop including.
THis patch defaults to FALSE to mirror the previous bad behaviors that was happening anyway. It also prevents 2 versions of jquery from being loaded on systems that use jquery update (which so many do that I dont know this compat thing is even needed at this point).
Comment #7
Samvel CreditAttribution: Samvel at DrupalJedi commentedHi guys!
According to #2465471-1: Remove inclusion of jQuery library @ANDiTKO advice to left checkboxes enabled. Attached patch for this
Any way @btopro thank you for the patch, it's can be used if maintainer decided to change logic.
Comment #9
Tess BakkerApplied patch #7 if still needed a follow up can be created.
Comment #10
Tess Bakker