1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-19 03:34:25 +01:00

Possibile fix #725

This commit is contained in:
Thomas Zilio 2020-01-10 19:00:49 +01:00
parent 48666a966c
commit 5612641702
3 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../../core.php';
$rs = $dbo->fetchArray('SELECT * FROM in_interventi WHERE in_interventi.idstatointervento = (SELECT in_statiintervento.idstatointervento FROm in_statiintervento WHERE in_statiintervento.codice=\'WIP\') ORDER BY data_richiesta ASC');
$rs = $dbo->fetchArray('SELECT * FROM in_interventi WHERE in_interventi.idstatointervento = (SELECT in_statiintervento.idstatointervento FROM in_statiintervento WHERE in_statiintervento.codice=\'WIP\') ORDER BY data_richiesta ASC');
if (!empty($rs)) {
echo '

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../../core.php';
$rs = $dbo->fetchArray('SELECT * FROM in_interventi WHERE in_interventi.idstatointervento = (SELECT in_statiintervento.idstatointervento FROm in_statiintervento WHERE in_statiintervento.codice=\'TODO\') ORDER BY data_richiesta ASC');
$rs = $dbo->fetchArray('SELECT * FROM in_interventi WHERE in_interventi.idstatointervento = (SELECT in_statiintervento.idstatointervento FROM in_statiintervento WHERE in_statiintervento.codice=\'TODO\') ORDER BY data_richiesta ASC');
if (!empty($rs)) {
echo '

View File

@ -12,6 +12,7 @@ $database->query('UPDATE `zz_operations` SET `id_email` = NULL');
foreach ($logs as $log) {
$user = User::find($log['id_utente']);
$template = Template::find($log['id_email']);
if (empty($template)) continue;
$mail = Mail::build($user, $template, $log['id_record']);
$mail->resetPrints();