Fix in controller and update in partial

This commit is contained in:
Brian Read 2025-05-09 13:15:00 +01:00
parent 10c7def564
commit 8977d629e7
2 changed files with 4 additions and 0 deletions

View File

@ -157,6 +157,7 @@ sub do_update {
} }
</tal:block> </tal:block>
if ($ret ne "ok"){ if ($ret ne "ok"){
$c->stash(error => $c->l($ret));
$c->do_display($thispanel); $c->do_display($thispanel);
} else { } else {
#Do whatever is needed, including writing values to the DB #Do whatever is needed, including writing values to the DB

View File

@ -13,6 +13,9 @@
</pre> </pre>
% } % }
% my $btn = l('APPLY'); % my $btn = l('APPLY');
% $c->param(Selected => undef);
%= form_for "${lcPackageName}u" => (method => 'POST') => begin %= form_for "${lcPackageName}u" => (method => 'POST') => begin
% param 'trt' => $$${prefix}_data->{trt} unless param 'trt'; % param 'trt' => $$${prefix}_data->{trt} unless param 'trt';
%= hidden_field 'trt' => $$${prefix}_data->{trt} %= hidden_field 'trt' => $$${prefix}_data->{trt}