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:
@@ -210,7 +210,7 @@ class FieldsController extends Controller
|
||||
$this->validateTagField($data);
|
||||
|
||||
try {
|
||||
$field = \databox_field::create($this->app, $databox, $data['name'], $data['multi']);
|
||||
$field = \databox_field::create($this->app, $databox, $data['name']);
|
||||
$this->updateFieldWithData($field, $data);
|
||||
$field->save();
|
||||
} catch (\Exception $e) {
|
||||
@@ -308,6 +308,7 @@ class FieldsController extends Controller
|
||||
->set_business($data['business'])
|
||||
->set_aggregable($data['aggregable'])
|
||||
->set_indexable($data['indexable'])
|
||||
->set_multi($data['multi'])
|
||||
->set_required($data['required'])
|
||||
->set_separator($data['separator'])
|
||||
->set_readonly($data['readonly'])
|
||||
|
Reference in New Issue
Block a user