Problem/Motivation

Sometimes when viewing taxonomy term pages, a preprocess function in Microdata throws a notice when $microdata[$field_name]['summary']['#attributes'] is empty. (This could actually be on all pages showing teasers – I'm not sure.)

Proposed resolution

Set the relevant variable to an empty array, if it is empty.

Remaining tasks

* Review patch soon to be posted.
* Commit patch, or find a better solution.

CommentFileSizeAuthor
#1 1556040-1-ensure_summary_attributes.patch826 bytesitangalo

Comments

itangalo’s picture

Status: Active » Needs review
StatusFileSize
new826 bytes

Patch attached!

Anonymous’s picture

Title: Summary attributes is being used, even when empty » Notice when reference fields don't have a mapping
Status: Needs review » Fixed

Thanks for reporting this. It was a deeper problem—any reference field would display this notice if there was no mapping for the field, so I addressed it in the reference field code. (and now have a test for it!)

Fixed with commit http://drupalcode.org/project/microdata.git/commit/5cae283

Let me know if you still run into this notice.

Status: Fixed » Closed (fixed)

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