Fix overwrete logic for files based on modified date. Rationalise perform logic routines

This commit is contained in:
2024-12-01 11:05:35 +00:00
parent ce91fbab45
commit bae566758c
12 changed files with 133 additions and 220 deletions

View File

@@ -113,9 +113,11 @@ sub get_${tablecontrol[0]} {
my $c = shift;
my $prefix_data = shift; #Data hash as parameter
my $ret = "";
my $db = $cdb; #maybe one of the others
my $dbkey = 'ChangeThis';
<tal:block tal:repeat="field fields[panel]">
if (! TRUE) #copy or perform with value: ${field} e.g. $c->setprop(dbentry,dbkey,$c->param('${field}')))
{$ret .= 'Perform failed for ${field} failed';}</tal:block>
if (! TRUE) #copy or perform with value: ${field} e.g. $c->setprop($db,$dbkey,$c->param('${field}')))
{$ret .= 'Perform/save failed for ${field}';}</tal:block>
if ($ret eq "") {$ret = 'ok';}
return $ret;
}