Merge pull request #17494 from atm-john/fix_not_enabled_email_template

FIX saving template email
This commit is contained in:
Laurent Destailleur 2021-05-06 16:22:19 +02:00 committed by GitHub
commit 9ce23ac6b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,7 +257,7 @@ if (empty($reshook))
$sql = "INSERT INTO ".$tabname[$id]." ("; $sql = "INSERT INTO ".$tabname[$id]." (";
// List of fields // List of fields
$sql .= $tabfieldinsert[$id]; $sql .= $tabfieldinsert[$id];
$sql .= ",active)"; $sql .= ",active,enabled)";
$sql .= " VALUES("; $sql .= " VALUES(";
// List of values // List of values
@ -289,7 +289,7 @@ if (empty($reshook))
$i++; $i++;
} }
$sql .= ", 1)"; $sql .= ", 1, 1)";
dol_syslog("actionadd", LOG_DEBUG); dol_syslog("actionadd", LOG_DEBUG);
$result = $db->query($sql); $result = $db->query($sql);