From 6a437a3831c8af08a716f99e2c84834cc248d452 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Fri, 3 Feb 2012 15:32:52 +0100 Subject: [PATCH] fix #312 subdef structure for a preview is duplicate --- lib/classes/databox/subdefsStructure.class.php | 2 +- lib/conf.d/data_templates/en-simple.xml | 2 +- lib/conf.d/data_templates/fr-simple.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/classes/databox/subdefsStructure.class.php b/lib/classes/databox/subdefsStructure.class.php index a081cf70b8..dda82dc1bf 100644 --- a/lib/classes/databox/subdefsStructure.class.php +++ b/lib/classes/databox/subdefsStructure.class.php @@ -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 . '"]'; diff --git a/lib/conf.d/data_templates/en-simple.xml b/lib/conf.d/data_templates/en-simple.xml index 1baaa0fabb..ca1a4ada97 100644 --- a/lib/conf.d/data_templates/en-simple.xml +++ b/lib/conf.d/data_templates/en-simple.xml @@ -47,7 +47,7 @@ - + {{datapathweb}}{{basename}}/subdefs 200 gif diff --git a/lib/conf.d/data_templates/fr-simple.xml b/lib/conf.d/data_templates/fr-simple.xml index 6b7d22e9a7..757a7e8b82 100755 --- a/lib/conf.d/data_templates/fr-simple.xml +++ b/lib/conf.d/data_templates/fr-simple.xml @@ -45,7 +45,7 @@ - + {{datapathweb}}{{basename}}/subdefs 200 gif