Skip to content

Commit

Permalink
Merge pull request #459 from MrNicodemuz/master
Browse files Browse the repository at this point in the history
Make resolving of paths optional for delete link in VichFileType
  • Loading branch information
K-Phoen committed Nov 3, 2015
2 parents ae6851e + 4f260ad commit d265956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Form/Type/VichFileType.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function buildDeleteField(FormBuilderInterface $builder, array $option
$object = $form->getParent()->getData();

// no object or no uploaded file: no delete button
if (null === $object || null === $storage->resolvePath($object, $form->getName())) {
if (null === $object || null === $storage->resolveUri($object, $form->getName())) {
return;
}

Expand Down

0 comments on commit d265956

Please sign in to comment.