When creating an entityreference_count field, after saving the field settings, this notice is displayed:

Notice: Undefined variable: settings in entityreference_count_field_instance_settings_form() (line 68 of ... /sites/all/modules/contrib/entityreference_count/entityreference_count.module).
Notice: Undefined variable: settings in entityreference_count_field_instance_settings_form() (line 74 of ... /sites/all/modules/contrib/entityreference_count/entityreference_count.module).

Further, when I attempt to set:

"Entity reference fields that may be counted", the field doesn't save and these warnings display:

Notice: Undefined variable: settings in entityreference_count_field_instance_settings_form() (line 68 of ... /sites/all/modules/contrib/entityreference_count/entityreference_count.module).
Notice: Undefined variable: settings in entityreference_count_field_instance_settings_form() (line 74 of ... /sites/all/modules/contrib/entityreference_count/entityreference_count.module).
Warning: Invalid argument supplied for foreach() in form_type_checkboxes_value() (line 2267 of ... /includes/form.inc).

Comments

gboggs’s picture

And, when saving a user profile that references the content type with a count field this notice displays:

Notice: Undefined property: FieldCollectionItemEntity::$type in entityreference_count_references_update() (line 400 of ... /sites/all/modules/contrib/entityreference_count/entityreference_count.module).
Notice: Undefined property: stdClass::$type in entityreference_count_references_update() (line 400 of ... /sites/all/modules/contrib/entityreference_count/entityreference_count.module).

jwilson3’s picture

jwilson3’s picture

Status: Active » Needs review
StatusFileSize
new555 bytes

There was a variable misspelled....

This patch replaces "$settigs" with $settings on line 51 of the module file.

jwilson3’s picture

Status: Fixed » Closed (fixed)

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