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.
In ds/modules/ds_extras/includes/ds_extras.admin.inc, line 576:
if ($value != 0 && $key == $value) {
Should be changed to:
if ($value !== 0 && $key == $value) {
Any string the can't be converted to a number will equal the number zero so $value != 0 is similar to 0 != 0 which will obviously return false.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2507163-unable-to-remove-blocks.patch | 1.31 KB | aspilicious |
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedNot again... :(
I thought I had fixed that. Let me dig through the history to see if I can spot the commits that affected that line.
Comment #2
aspilicious CreditAttribution: aspilicious commentedThanx for the bug report!
First we had: #2347347: Remove Block Region
http://cgit.drupalcode.org/ds/commit/?id=97104eaa683f0d100be8d48fc589636...
Than:
http://cgit.drupalcode.org/ds/commit/?id=d065c676afc6df3a027650e5153d5a3...
Can you give your list of block region names you added?
Comment #3
aspilicious CreditAttribution: aspilicious at Nascom commentedComment #4
aspilicious CreditAttribution: aspilicious at Nascom commentedComment #5
aspilicious CreditAttribution: aspilicious at Nascom commentedComment #8
aspilicious CreditAttribution: aspilicious at Nascom commented