Fix hidden feature to send remind by email
This commit is contained in:
parent
df3f29ee96
commit
e3af0b90ec
@ -248,12 +248,11 @@ if ($action == 'presend' && GETPOST('sendmail'))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$nbignored++;
|
$nbignored++;
|
||||||
$langs->load("other");
|
$langs->load("other");
|
||||||
$resultmasssend.='<div class="error">'.$langs->trans('ErrorCantReadFile',$file).'</div>';
|
$resultmasssend.='<div class="error">'.$langs->trans('ErrorCantReadFile',$file).'</div>';
|
||||||
dol_syslog('Failed to read file: '.$file, LOG_WARNING);
|
dol_syslog('Failed to read file: '.$file, LOG_WARNING);
|
||||||
break ;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -558,9 +557,7 @@ if ($resql)
|
|||||||
include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php';
|
||||||
$formmail = new FormMail($db);
|
$formmail = new FormMail($db);
|
||||||
|
|
||||||
print '<br>';
|
dol_fiche_head(null, '', $langs->trans("SendRemind"));
|
||||||
print_fiche_titre($langs->trans("SendRemind"),'','');
|
|
||||||
print '<br>';
|
|
||||||
|
|
||||||
$topicmail="MailTopicSendRemindUnpaidInvoices";
|
$topicmail="MailTopicSendRemindUnpaidInvoices";
|
||||||
$modelmail="facture_relance";
|
$modelmail="facture_relance";
|
||||||
@ -600,7 +597,8 @@ if ($resql)
|
|||||||
$formmail->param['returnurl']=$_SERVER["PHP_SELF"].'?id='.$object->id;
|
$formmail->param['returnurl']=$_SERVER["PHP_SELF"].'?id='.$object->id;
|
||||||
|
|
||||||
print $formmail->get_form();
|
print $formmail->get_form();
|
||||||
print '<br>'."\n";
|
|
||||||
|
dol_fiche_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user