PHRAS-2808_disable-cterms_4.1

new : checkbox in admin/field to disable cterms generation.
fix : when cterms is cleared (during reindex), rejected terms are kept
WIP
This commit is contained in:
Jean-Yves Gaulier
2019-10-31 18:12:26 +01:00
parent 1becb29bc3
commit ce13112105
14 changed files with 166 additions and 14 deletions

View File

@@ -314,6 +314,7 @@ class FieldsController extends Controller
->set_readonly($data['readonly'])
->set_type($data['type'])
->set_tbranch($data['tbranch'])
->set_publish_cterms($data['publish_cterms'])
->set_report($data['report'])
->setVocabularyControl(null)
->setVocabularyRestricted(false);
@@ -349,7 +350,7 @@ class FieldsController extends Controller
{
return [
'name', 'multi', 'thumbtitle', 'tag', 'business', 'indexable', 'aggregable',
'required', 'separator', 'readonly', 'type', 'tbranch', 'report',
'required', 'separator', 'readonly', 'type', 'tbranch', 'publish_cterms', 'report',
'vocabulary-type', 'vocabulary-restricted', 'dces-element', 'labels'
];
}