TT#56463 fix $c->log vs $c->loc #2

Change-Id: I686928eb60948a79d02e74d6f43b7c4e9148da83
changes/56/28856/3
Rene Krenn 7 years ago
parent 33f470dbd4
commit 61a9c10a36

@ -238,7 +238,7 @@ sub check_template_id :Private {
NGCP::Panel::Utils::Message::error(
c => $c,
log => 'Invalid email template id detected',
desc => $c->log('Invalid email template id detected'),
desc => $c->loc('Invalid email template id detected'),
);
$c->response->redirect($c->uri_for());
$c->detach;

@ -298,7 +298,7 @@ sub set_content_ajax :Chained('base') :PathPart('editcontent/set/ajax') :Args(0)
NGCP::Panel::Utils::Message::error(
c => $c,
error => 'empty svg file not allowed',
desc => $c->log('Attempted to save an empty invoice template'),
desc => $c->loc('Attempted to save an empty invoice template'),
);
return;
}

@ -75,7 +75,7 @@ sub base :Chained('mcid_list') :PathPart('') :CaptureArgs(1) {
NGCP::Panel::Utils::Message::error(
c => $c,
log => 'Invalid malicious call id detected',
desc => $c->log('Invalid malicious call id detected'),
desc => $c->loc('Invalid malicious call id detected'),
);
$c->response->redirect($c->uri_for());
$c->detach;
@ -87,7 +87,7 @@ sub base :Chained('mcid_list') :PathPart('') :CaptureArgs(1) {
NGCP::Panel::Utils::Message::error(
c => $c,
log => 'Malicious call does not exist',
desc => $c->log('Malicious call does not exist'),
desc => $c->loc('Malicious call does not exist'),
);
$c->response->redirect($c->uri_for());
$c->detach;

Loading…
Cancel
Save