Skip to content

Commit

Permalink
Fix create link in show all handler
Browse files Browse the repository at this point in the history
  • Loading branch information
discordier committed Mar 17, 2017
1 parent 6c6200e commit c0a5e69
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,7 @@ private function getHeaderPasteNewButton(ModelInterface $parentModel)
/** @var AddToUrlEvent $urlEvent */
$urlEvent = $dispatcher->dispatch(
ContaoEvents::BACKEND_ADD_TO_URL,
new AddToUrlEvent(
// FIXME: this URL is broken!
'act=edit&pid=' . ModelId::fromModel($parentModel)->getSerialized()
)
new AddToUrlEvent('act=create&pid=' . ModelId::fromModel($parentModel)->getSerialized())
);

$parentDefinition = $this->environment->getParentDataDefinition();
Expand Down

0 comments on commit c0a5e69

Please sign in to comment.