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:
Jean-Yves Gaulier
2016-06-23 20:22:25 +02:00
parent e6762531cc
commit deafb8b957
7 changed files with 103 additions and 77 deletions

View File

@@ -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'])