mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix #854: Multi fields in defaults structures as set as mono
This commit is contained in:
@@ -858,7 +858,9 @@ class databox extends base
|
|||||||
)
|
)
|
||||||
) ? $type : databox_field::TYPE_STRING;
|
) ? $type : databox_field::TYPE_STRING;
|
||||||
|
|
||||||
$meta_struct_field = databox_field::create($this, $fname, false);
|
$multi = isset($field['multi']) ? (Boolean) $field['multi'] : false;
|
||||||
|
|
||||||
|
$meta_struct_field = databox_field::create($this, $fname, $multi);
|
||||||
$meta_struct_field
|
$meta_struct_field
|
||||||
->set_readonly(isset($field['readonly']) ? $field['readonly'] : 0)
|
->set_readonly(isset($field['readonly']) ? $field['readonly'] : 0)
|
||||||
->set_indexable(isset($field['index']) ? $field['index'] : '1')
|
->set_indexable(isset($field['index']) ? $field['index'] : '1')
|
||||||
|
@@ -301,7 +301,7 @@
|
|||||||
<description>
|
<description>
|
||||||
<Object src="IPTC:ObjectName" />
|
<Object src="IPTC:ObjectName" />
|
||||||
<Category src="IPTC:Category"/>
|
<Category src="IPTC:Category"/>
|
||||||
<SupplCategory src="IPTC:SupplementalCategories"/>
|
<SupplCategory src="IPTC:SupplementalCategories" multi="1"/>
|
||||||
<Keywords src="IPTC:Keywords" multi="1"/>
|
<Keywords src="IPTC:Keywords" multi="1"/>
|
||||||
<SpecialInstruct src="IPTC:SpecialInstructions"/>
|
<SpecialInstruct src="IPTC:SpecialInstructions"/>
|
||||||
<Date src="IPTC:DateCreated" type="date" />
|
<Date src="IPTC:DateCreated" type="date" />
|
||||||
|
@@ -301,7 +301,7 @@
|
|||||||
<description>
|
<description>
|
||||||
<Objet src="IPTC:ObjectName" />
|
<Objet src="IPTC:ObjectName" />
|
||||||
<Categorie src="IPTC:Category"/>
|
<Categorie src="IPTC:Category"/>
|
||||||
<AutresCategories src="IPTC:SupplementalCategories"/>
|
<AutresCategories src="IPTC:SupplementalCategories" multi="1"/>
|
||||||
<MotsCles src="IPTC:Keywords" multi="1"/>
|
<MotsCles src="IPTC:Keywords" multi="1"/>
|
||||||
<Observations src="IPTC:SpecialInstructions"/>
|
<Observations src="IPTC:SpecialInstructions"/>
|
||||||
<Date src="IPTC:DateCreated" type="date" />
|
<Date src="IPTC:DateCreated" type="date" />
|
||||||
|
Reference in New Issue
Block a user