I want to store multiple values per computed field.
When creating editing a computed field the 'description' for 'Computed Code (PHP)' states:

For multi-value computed fields continue with $entity_field[1]['value'].

leading me to think I can store multiple values.
But when I do:

<?php
$entity_field
[0]['value'] = $var1;
$entity_field[1]['value'] = $var2;
$entity_field[2]['value'] = $var3;
?>

the other 2 values don't get stored, no error but nothing in the DB and no documentation on how to retrieve. Am I misinterpreting the desciption or is it not working?

Comments

liquidcms’s picture

Title:Storing multiple values» Can't store multiple values
Version:7.x-1.0-beta1» 7.x-1.x-dev
Category:Support request» Bug report
Priority:Normal» Major
Issue summary:View changes

i see same issue. my guess this is broken. i'll see if i can see where it is broken.

liquidcms’s picture

have you set the field cardinality (how many values it can have) to unlimited?