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.
When inserting a date field into a panel pane, I got an unsupported operand type error on line 12 in empty_fields.module due to $formatter['settings'] not being set for the date_plain formatter.
See patch below for fix which settings $formatter['settings'] to an empty array if it's missing
Comment | File | Size | Author |
---|---|---|---|
#1 | missing-formatter-settings-1822592-1.patch | 532 bytes | setvik |
Comments
Comment #1
setvik CreditAttribution: setvik commentedComment #2
setvik CreditAttribution: setvik commentedComment #3
rypit CreditAttribution: rypit commentedThank you for the patch. Will review and commit assuming it addresses the issue. Also, please check out the 2-x branch. We plan an official release for it soon and it's going to open up some interesting possibilities. (Consider things like embedding a view, another node, or a block as a reaction).
Comment #4
Alan D. CreditAttribution: Alan D. commentedTrivial fix, thanks.
Comment #5
Alan D. CreditAttribution: Alan D. commentedThis branch is not really supported any more, but I have pushed into the 1.x branch. Thanks!
This is n/a for the 2.x branch