diff --git a/library/ZendAfi/Form/Album.php b/library/ZendAfi/Form/Album.php index 02c8447430b9eee9c00314574a5edd092ebea81d..30c74e20f02ca2fd472fcd7b7f74f4a2a13dc561 100644 --- a/library/ZendAfi/Form/Album.php +++ b/library/ZendAfi/Form/Album.php @@ -367,6 +367,7 @@ class ZendAfi_Form_Album extends ZendAfi_Form { } public function beSimple() { + $this->getElement('visible')->setValue("0"); $this->_removeNotSimpleElements(); $this->_removeEmptyGroups(); diff --git a/tests/application/modules/admin/controllers/AlbumControllerTest.php b/tests/application/modules/admin/controllers/AlbumControllerTest.php index ba0b6769f9bacf781f8fe5b829861e7991f82b82..30f72b31257f176adc7e26fc512c7e340108f863 100644 --- a/tests/application/modules/admin/controllers/AlbumControllerTest.php +++ b/tests/application/modules/admin/controllers/AlbumControllerTest.php @@ -2857,6 +2857,12 @@ class Admin_AlbumControllerAddAlbumToAjaxTest extends Admin_AlbumControllerTestC } + /** @test */ + public function indexElementBoxShouldBeUnchecked() { + $this->_xpath->assertXPath($this->_json->content, '//input[@type="checkbox"][@name="visible"][@value="0"]'); + } + + /** @test */ public function frbrLinkTypeElementShouldBePresent() { $this->_xpath->assertXPath($this->_json->content, '//script',