From b2ba5f7de7693433b49e62b0166fb8497c0cc0c6 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 5 Jun 2015 09:17:25 +0000 Subject: [PATCH] Form localized : add a flag that copy a value for empty fields --- framework/application/forms/CMS/Sub/Casestudies/Studies.php | 6 +++--- framework/application/views/scripts/common/footer.phtml | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/framework/application/forms/CMS/Sub/Casestudies/Studies.php b/framework/application/forms/CMS/Sub/Casestudies/Studies.php index 9d0f5d8..83c3c5b 100644 --- a/framework/application/forms/CMS/Sub/Casestudies/Studies.php +++ b/framework/application/forms/CMS/Sub/Casestudies/Studies.php @@ -29,17 +29,17 @@ class Cubedesigners_Form_CMS_Sub_Casestudies_Studies extends CubeIT_Form_List_Mo $url = new CubeIT_Form_Element_Url('url'); $url->setLabel('URL du site'); - $this->addElementLocalized($url, $isCompactTrad); + $this->addElementLocalized($url, $isCompactTrad, true); $visuel = new CubeIT_Form_Element_File_Image('visuel'); $visuel->setLabel('Visuel de la page Case Studies'); $visuel->setMaxItems(1); - $this->addElementLocalized($visuel, $isCompactTrad); + $this->addElementLocalized($visuel, $isCompactTrad, true); $visuel_detail = new CubeIT_Form_Element_File_Image('visuel_detail'); $visuel_detail->setLabel('Visuel de la page de détail'); $visuel_detail->setMaxItems(1); - $this->addElementLocalized($visuel_detail, $isCompactTrad); + $this->addElementLocalized($visuel_detail, $isCompactTrad, true); $legende = new Zend_Form_Element_Text('legende'); $legende->setLabel('Legende du visuel'); diff --git a/framework/application/views/scripts/common/footer.phtml b/framework/application/views/scripts/common/footer.phtml index dc80e82..e7b7dbc 100644 --- a/framework/application/views/scripts/common/footer.phtml +++ b/framework/application/views/scripts/common/footer.phtml @@ -56,7 +56,6 @@ echo $this->clear(); echo $this->localeNavigation(true, CubeIT_View_Helper_LocaleNavigation::BIGRAMME); } ?> - -- 2.39.5