Fix error return from params screen
This commit is contained in:
@@ -129,7 +129,8 @@ sub do_update {
|
||||
|
||||
my $c = shift;
|
||||
$c->app->log->info($c->log_req);
|
||||
|
||||
my $modul = '';
|
||||
|
||||
my %${prefix}_data = ();
|
||||
my $title = $c->l('${prefix}_${MenuDescription}');
|
||||
|
||||
@@ -159,9 +160,14 @@ sub do_update {
|
||||
</tal:block>
|
||||
|
||||
if ($ret ne "ok") {
|
||||
# return to the panel with error message
|
||||
${prefix}_data{trt} = $thispanel;
|
||||
$c->stash(error => $c->l($ret));
|
||||
$c->render("${lcPackageName}");
|
||||
$c->stash(
|
||||
title => $title,
|
||||
modul => $modul,
|
||||
${prefix}_data => \%${prefix}_data
|
||||
);
|
||||
$c->render( template => "${lcPackageName}" );
|
||||
} else {
|
||||
#Do whatever is needed, including writing values to the DB
|
||||
<tal:block tal:repeat="panel panels">
|
||||
|
Reference in New Issue
Block a user