From 8977d629e7bda21a8680ec881d7694c3e778be9e Mon Sep 17 00:00:00 2001 From: Brian Read Date: Fri, 9 May 2025 13:15:00 +0100 Subject: [PATCH] Fix in controller and update in partial --- Templates/controller.pm.tem | 1 + Templates/partial.html.ep.tem | 3 +++ 2 files changed, 4 insertions(+) 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}