Skip to content

CardDeck default UserAction not working  #1844

@mkrecek234

Description

@mkrecek234

Steps to reproduce:

  • add default CardDeck to any view
  • set any model to CardDeck
  • Press default UserAction 'Add' and enter entity

Error:

  • Expected entity, but instance is a model
    if ($action->getModel()->isLoaded() && $card = $this->findCard($action->getModel())) {

and here

if (in_array($model->getId(), array_map($mapResults, $model->export([$model->idField])), true)) {

Replacing $action->getModel() by $action->getEntity() also won't fix it...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions