Merge branch '7.0' of https://github.com/dolibarr/dolibarr into 8.0
Conflicts: htdocs/core/actions_sendmails.inc.php
This commit is contained in:
commit
7738787729
@ -43,7 +43,7 @@ if (GETPOST('addfile','alpha'))
|
|||||||
$vardir=$conf->user->dir_output."/".$user->id;
|
$vardir=$conf->user->dir_output."/".$user->id;
|
||||||
$upload_dir_tmp = $vardir.'/temp'; // TODO Add $keytoavoidconflict in upload_dir path
|
$upload_dir_tmp = $vardir.'/temp'; // TODO Add $keytoavoidconflict in upload_dir path
|
||||||
|
|
||||||
dol_add_file_process($upload_dir_tmp, 0, 0, 'addedfile', '', null, $trackid, 0);
|
dol_add_file_process($upload_dir_tmp, 1, 0, 'addedfile', '', null, $trackid, 0);
|
||||||
$action='presend';
|
$action='presend';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1250,6 +1250,10 @@ function check_value($mask,$value)
|
|||||||
if (! empty($reg[3]) && preg_match('/^@/',$reg[3])) $maskraz=preg_replace('/^@/','',$reg[3]);
|
if (! empty($reg[3]) && preg_match('/^@/',$reg[3])) $maskraz=preg_replace('/^@/','',$reg[3]);
|
||||||
if ($maskraz >= 0)
|
if ($maskraz >= 0)
|
||||||
{
|
{
|
||||||
|
if ($maskraz == 99) {
|
||||||
|
$maskraz = date('m');
|
||||||
|
$resetEveryMonth = true;
|
||||||
|
}
|
||||||
if ($maskraz > 12) return 'ErrorBadMaskBadRazMonth';
|
if ($maskraz > 12) return 'ErrorBadMaskBadRazMonth';
|
||||||
|
|
||||||
// Define reg
|
// Define reg
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user