Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit b6a46c1c969e0a3f455160849bb41f26a7bda022 1 parent dbbdbde
@elHornair elHornair authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Admin/SlideshowItemAdmin.php
View
2  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')
Please sign in to comment.
Something went wrong with that request. Please try again.