Skip to content

Commit

Permalink
chore(AbstractAdminWithBulkController): Pass current item to logger
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Sep 14, 2023
1 parent 81ea316 commit a98a9e1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function bulkDeleteAction(Request $request): Response
'%namespace%' => $this->getTranslator()->trans($this->getNamespace())
]
);
$this->publishConfirmMessage($request, $msg);
$this->publishConfirmMessage($request, $msg, $item);
$this->removeItem($item);
}
$this->em()->flush();
Expand Down Expand Up @@ -197,7 +197,7 @@ public function bulkPublishAction(Request $request): Response
'%namespace%' => $this->getTranslator()->trans($this->getNamespace())
]
);
$this->publishConfirmMessage($request, $msg);
$this->publishConfirmMessage($request, $msg, $item);
}
}
$this->em()->flush();
Expand Down Expand Up @@ -260,7 +260,7 @@ public function bulkUnpublishAction(Request $request): Response
'%namespace%' => $this->getTranslator()->trans($this->getNamespace())
]
);
$this->publishConfirmMessage($request, $msg);
$this->publishConfirmMessage($request, $msg, $item);
}
}
$this->em()->flush();
Expand Down

0 comments on commit a98a9e1

Please sign in to comment.