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));