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;

@ -217,7 +217,7 @@ sub edit_info :Chained('base') :PathPart('editinfo') {
if($dup_item && $dup_item->id != $tmpl->id) {
die( ["Template name should be unique", "showdetails"] );
}
$tmpl->update($form->values);
delete $c->session->{created_objects}->{reseller};
@ -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;
}
@ -387,7 +387,7 @@ sub preview_content :Chained('base') :PathPart('editcontent/preview') :Args {
sub embed_image :Chained('/') :PathPart('invoicetemplate/embedimage') :Args(0) {
my ($self, $c) = @_;
my ($in, $out);
$in = $c->request->parameters;
$in->{svg_file} = $c->request->upload('svg_file');
@ -404,7 +404,7 @@ sub embed_image :Chained('/') :PathPart('invoicetemplate/embedimage') :Args(0) {
$c->stash(in => $in);
$c->stash(template => 'invoice/template_editor_aux_embedimage.tt');
$c->detach( $c->view('TT') );
}

@ -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