CustomFields

- renamed form block type "input" to "text" for consistency with React
- updated CustomFields router to comply with main router
- unit tests for CF router
This commit is contained in:
Jonathan Labreuille
2016-01-29 17:14:01 +01:00
parent 24f96d9d7d
commit bb1cc997cc
11 changed files with 146 additions and 28 deletions

View File

@@ -54,7 +54,7 @@ class CustomField extends Model {
}
// set name as label by default
if(empty($data['params']['label'])) {
if(empty($data['params']['label']) && isset($data['name'])) {
$data['params']['label'] = $data['name'];
}