mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
PHRAS-3712 admin - sudefinition - property to define building rules on subdefinition (#4104)
* add building rules * setting in first position attribute `tobuild` on subdefinition limit subdef name to 64 like db taken account tobuild in tools rebuild GUI taken account tobuild in command `bin/console records:build-subdefs` * add check * add tobuild in api response * fix command `bin/console records:build-subdefs`
This commit is contained in:
@@ -182,6 +182,7 @@ class SubdefsController extends Controller
|
||||
$class = $request->request->get($post_sub . '_class');
|
||||
$downloadable = $request->request->get($post_sub . '_downloadable');
|
||||
$orderable = $request->request->get($post_sub . '_orderable');
|
||||
$toBuild = $request->request->get($post_sub . '_tobuild');
|
||||
|
||||
$defaults = ['path', 'meta', 'mediatype'];
|
||||
|
||||
@@ -207,7 +208,7 @@ class SubdefsController extends Controller
|
||||
}
|
||||
|
||||
$labels = $request->request->get($post_sub . '_label', []);
|
||||
$subdefs->set_subdef($group, $name, $class, $downloadable, $options, $labels, $orderable, $preset);
|
||||
$subdefs->set_subdef($group, $name, $class, $downloadable, $options, $labels, $orderable, $preset, $toBuild);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user