mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
fix #312 subdef structure for a preview is duplicate
This commit is contained in:
@@ -179,7 +179,7 @@ class databox_subdefsStructure implements IteratorAggregate
|
||||
|
||||
$subdef = $dom_struct->createElement('subdef');
|
||||
$subdef->setAttribute('class', $class);
|
||||
$subdef->setAttribute('name', $name);
|
||||
$subdef->setAttribute('name', mb_strtolower($name));
|
||||
|
||||
$dom_xp = $this->databox->get_xpath_structure();
|
||||
$query = '//record/subdefs/subdefgroup[@name="' . $groupname . '"]';
|
||||
|
@@ -47,7 +47,7 @@
|
||||
<label lang="fr">Prévisualisation</label>
|
||||
<label lang="en">Preview</label>
|
||||
</subdef>
|
||||
<subdef class="thumbnail" name="thumbnailGIF" downloadable="true">
|
||||
<subdef class="thumbnail" name="thumbnailgif" downloadable="true">
|
||||
<path>{{datapathweb}}{{basename}}/subdefs</path>
|
||||
<size>200</size>
|
||||
<mediatype>gif</mediatype>
|
||||
|
@@ -45,7 +45,7 @@
|
||||
<label lang="fr">Prévisualisation</label>
|
||||
<label lang="en">Preview</label>
|
||||
</subdef>
|
||||
<subdef class="thumbnail" name="thumbnailGIF" downloadable="true">
|
||||
<subdef class="thumbnail" name="thumbnailgif" downloadable="true">
|
||||
<path>{{datapathweb}}{{basename}}/subdefs</path>
|
||||
<size>200</size>
|
||||
<mediatype>gif</mediatype>
|
||||
|
Reference in New Issue
Block a user