]> _ Git - fluidbook-v3.git/commitdiff
Allow only 1 image for each slide in services section. Done #4063 @0:05
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 23 Nov 2020 13:19:46 +0000 (13:19 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 23 Nov 2020 13:19:46 +0000 (13:19 +0000)
framework/application/forms/CMS/Sub/Home/Services/Example.php

index 8dff3993ec83b6d9693a7a6d8c7f3a8c16829c7d..2eb311f6dc9d5cc159b8c034a8001afff54cbf35 100644 (file)
@@ -15,10 +15,11 @@ class Fluidbook_Form_CMS_Sub_Home_Services_Example extends CubeIT_Form_SubForm {
 
                $image = new CubeIT_Form_Element_File_Image('image');
                $image->setLabel('Image');
+        $image->setMaxItems(1);
                $this->addElement($image);
 
                $link = new CubeIT_Form_Element_Link('link');
                $link->setLabel('Link');
                $this->addSubForm($link, 'link');
        }
-}
\ No newline at end of file
+}