Permalink
Browse files

corrected logic to determine if we're in edit or create mode

  • Loading branch information...
elHornair committed Feb 25, 2013
1 parent dbbdbde commit b6a46c1c969e0a3f455160849bb41f26a7bda022
Showing with 1 addition and 1 deletion.
  1. +1 −1 Admin/SlideshowItemAdmin.php
@@ -13,7 +13,7 @@ protected function configureFormFields(FormMapper $formMapper)
parent::configureFormFields($formMapper);
// image is only required when creating a new item
- $imageRequired = $this->getSubject()->getParent() ? false : true;
+ $imageRequired = ($this->getSubject() && $this->getSubject()->getParent()) ? false : true;
$formMapper
->with('form.group_general')

0 comments on commit b6a46c1

Please sign in to comment.