From 1b41987aa7b888127b081e0c341c36e5c1309c94 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Tue, 3 Sep 2024 12:01:17 +0100 Subject: [PATCH] In Controller call sub through --- Templates/controller.pm.tem | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Templates/controller.pm.tem b/Templates/controller.pm.tem index 1e9deeb..769c1b4 100644 --- a/Templates/controller.pm.tem +++ b/Templates/controller.pm.tem @@ -143,7 +143,7 @@ sub do_update { if ($trt eq '${panel}'){ #Validate form parameters for panel ${panel} - $ret = validate_${panel}($c,\%${prefix}_data); + $ret = $c->validate_${panel}(\%${prefix}_data); $thispanel = '${panel}'; } @@ -157,7 +157,7 @@ sub do_update { if ($trt eq '${panel}'){ #do whatever is required ... - $ret = perform_${panel}($c,\%${prefix}_data); + $ret = $c->perform_${panel}(\%${prefix}_data); if ($ret ne "ok") { # return to the panel with error message $c->stash(error => $c->l($ret));