Skip to content

Commit

Permalink
DEBUG, both should work
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Aug 28, 2022
1 parent 9acc322 commit 0f6febd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ public function addAction(Model\UserAction $action, $executorClass, $button = nu
$vp = VirtualPage::addTo($this)->set(function (View $page) use ($executorClass, $action) {
$id = $this->stickyGet($this->name);

$executor = $page->add(new $executorClass());
$executor = View::addToWithCl($page, [$executorClass]);

$action = $action->getActionForEntity($action->getModel()->load($id));

$executor->setAction($action);
$executor->setAction($action); // @phpstan-ignore-line
});

$btn->on('click', new JsModal($action->caption, $vp, [$this->name => (new Jquery())->parents('.atk-card')->data('id')]));
Expand Down

0 comments on commit 0f6febd

Please sign in to comment.