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

CommentFileSizeAuthor
#1 missing-formatter-settings-1822592-1.patch532 bytessetvik
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

setvik’s picture

setvik’s picture

Status: Active » Needs review
rypit’s picture

Assigned: Unassigned » rypit

Thank 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).

Alan D.’s picture

Status: Needs review » Reviewed & tested by the community

Trivial fix, thanks.

Alan D.’s picture

Status: Reviewed & tested by the community » Fixed

This 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.