mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
PHRAS-1177_change-multi-on-field
- add : now the "multi" attribute on a field can be changed after creation - change : field template #time 3h
This commit is contained in:
@@ -451,8 +451,9 @@ class databox extends base implements ThumbnailedElement
|
||||
|
||||
$multi = isset($field['multi']) ? (Boolean) (string) $field['multi'] : false;
|
||||
|
||||
$meta_struct_field = databox_field::create($this->app, $this, $fname, $multi);
|
||||
$meta_struct_field = databox_field::create($this->app, $this, $fname);
|
||||
$meta_struct_field
|
||||
->set_multi($multi)
|
||||
->set_readonly(isset($field['readonly']) ? (string) $field['readonly'] : 0)
|
||||
->set_indexable(isset($field['index']) ? (string) $field['index'] : '1')
|
||||
->set_separator(isset($field['separator']) ? (string) $field['separator'] : '')
|
||||
|
Reference in New Issue
Block a user