Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix comment delete request #2407

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function deleteAction(Request $request): JsonResponse
{
$commentId = $this->getParameterFromRequest($request, 'id');
$objectNoteService = $this->get(NoteServiceInterface::class);
$commentEntity = $objectNoteService->getNoteById($commentId);
$commentEntity = $objectNoteService->getNoteById((int) $commentId);

if ($commentEntity instanceof Note) {
/** @psalm-suppress InternalMethod */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ coreshop_admin_order_comments_add:
coreshop_admin_order_comments_delete:
path: /%coreshop.admin.route.base%/order-comment/delete
defaults: { _controller: 'coreshop.pimcore_controller.order_comment:deleteAction'}

options:
expose: true

##### ORDER SHIPMENT
coreshop_admin_order_shipment_get_processable_items:
path: /%coreshop.admin.route.base%/order-shipment/get-ship-able-items
Expand Down