My content type contains a field collection which contains a computed field. When I add additional instances of the field collection to the node, I get the following error appearing at the top of the page:

Notice: Undefined offset: 0 in eval() (line 2 of /var/www/mainweb-current/sites/all/modules/computed_field/computed_field.module(466) : eval()'d code).

Comments

tsmulugeta’s picture

Issue summary: View changes

I'm having the same problem. Any update on this?

nikunj.shah’s picture

StatusFileSize
new504 bytes

Hello kwfinken,

Here is the patch. May be this will solve your error.

nikunj.shah’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: computed_field_undefined_offset_2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

davidburns’s picture

StatusFileSize
new925 bytes

Re-rolled against 7.x-1.1
Added a check for earlier eval.

szecsodimlaszlo’s picture

The patch #5 seems to work for a similar issue. Thanks.