diff --git a/Templates/controller.pm.tem b/Templates/controller.pm.tem index 944b49d..993a596 100644 --- a/Templates/controller.pm.tem +++ b/Templates/controller.pm.tem @@ -157,6 +157,7 @@ sub do_update { } if ($ret ne "ok"){ + $c->stash(error => $c->l($ret)); $c->do_display($thispanel); } else { #Do whatever is needed, including writing values to the DB diff --git a/Templates/partial.html.ep.tem b/Templates/partial.html.ep.tem index 5bcd568..1d050a6 100644 --- a/Templates/partial.html.ep.tem +++ b/Templates/partial.html.ep.tem @@ -13,6 +13,9 @@ % } % my $btn = l('APPLY'); + + % $c->param(Selected => undef); + %= form_for "${lcPackageName}u" => (method => 'POST') => begin % param 'trt' => $$${prefix}_data->{trt} unless param 'trt'; %= hidden_field 'trt' => $$${prefix}_data->{trt}