Skip to content

Commit

Permalink
Merge pull request #4715 from l2dy/issue-4684
Browse files Browse the repository at this point in the history
Remove incorrect extra argument from log_error() calls
  • Loading branch information
okazy authored Oct 6, 2020
2 parents de8a9ff + d2f10eb commit 62f730f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function delete(Request $request, $id, TranslatorInterface $translator)
$this->entityManager->flush($Customer);
$this->addSuccess('admin.common.delete_complete', 'admin');
} catch (ForeignKeyConstraintViolationException $e) {
log_error('会員削除失敗', [$e], 'admin');
log_error('会員削除失敗', [$e]);

$message = trans('admin.common.delete_error_foreign_key', ['%name%' => $Customer->getName01().' '.$Customer->getName02()]);
$this->addError($message, 'admin');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function delete(Request $request, Customer $Customer, $did)
$this->customerAddressRepository->delete($CustomerAddress);
$this->addSuccess('admin.common.delete_complete', 'admin');
} catch (ForeignKeyConstraintViolationException $e) {
log_error('お届け先削除失敗', [$e], 'admin');
log_error('お届け先削除失敗', [$e]);

$message = trans('admin.common.delete_error_foreign_key', ['%name%' => trans('admin.customer.customer_address')]);
$this->addError($message, 'admin');
Expand Down

0 comments on commit 62f730f

Please sign in to comment.