mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
PHRAS-2808-2806_disable-cterms_mask-writable-fields_4.1
new : checkbox in admin/field to allow gui (prod) editing, default=checked. rename "publish_cterms" to "generate_cterms" todo : implement "gui_editable" in edit ux (hide field when =false) todo : 2 new strings (ckbox labels) to trans
This commit is contained in:
@@ -43,7 +43,7 @@ class Field implements Typed
|
||||
|
||||
private $thesaurus_roots;
|
||||
|
||||
private $publish_cterms;
|
||||
private $generate_cterms;
|
||||
|
||||
private $used_by_collections;
|
||||
|
||||
@@ -77,7 +77,7 @@ class Field implements Typed
|
||||
'private' => $field->isBusiness(),
|
||||
'facet' => $facet,
|
||||
'thesaurus_roots' => $roots,
|
||||
'publish_cterms' => $field->get_publish_cterms(),
|
||||
'generate_cterms' => $field->get_generate_cterms(),
|
||||
'used_by_collections' => $databox->get_collection_unique_ids()
|
||||
]);
|
||||
}
|
||||
@@ -106,7 +106,7 @@ class Field implements Typed
|
||||
$this->is_private = \igorw\get_in($options, ['private'], false);
|
||||
$this->facet = \igorw\get_in($options, ['facet']);
|
||||
$this->thesaurus_roots = \igorw\get_in($options, ['thesaurus_roots'], null);
|
||||
$this->publish_cterms = \igorw\get_in($options, ['publish_cterms'], false);
|
||||
$this->generate_cterms = \igorw\get_in($options, ['generate_cterms'], false);
|
||||
$this->used_by_collections = \igorw\get_in($options, ['used_by_collections'], []);
|
||||
|
||||
Assertion::boolean($this->is_searchable);
|
||||
@@ -130,7 +130,7 @@ class Field implements Typed
|
||||
'private' => $this->is_private,
|
||||
'facet' => $this->facet,
|
||||
'thesaurus_roots' => $this->thesaurus_roots,
|
||||
'publish_cterms' => $this->publish_cterms,
|
||||
'generate_cterms' => $this->generate_cterms,
|
||||
'used_by_collections' => $this->used_by_collections
|
||||
]);
|
||||
}
|
||||
@@ -195,9 +195,9 @@ class Field implements Typed
|
||||
return $this->thesaurus_roots;
|
||||
}
|
||||
|
||||
public function get_publish_cterms()
|
||||
public function get_generate_cterms()
|
||||
{
|
||||
return $this->publish_cterms;
|
||||
return $this->generate_cterms;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user