Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
c606e4b943
@ -42,6 +42,9 @@ class box_scheduled_jobs extends ModeleBoxes
|
|||||||
*/
|
*/
|
||||||
public $db;
|
public $db;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string params
|
||||||
|
*/
|
||||||
public $param;
|
public $param;
|
||||||
|
|
||||||
public $info_box_head = array();
|
public $info_box_head = array();
|
||||||
@ -101,7 +104,9 @@ class box_scheduled_jobs extends ModeleBoxes
|
|||||||
|
|
||||||
if (dol_eval($objp->test, 1, 1)) {
|
if (dol_eval($objp->test, 1, 1)) {
|
||||||
$nextrun = $this->db->jdate($objp->datenextrun);
|
$nextrun = $this->db->jdate($objp->datenextrun);
|
||||||
if (empty($nextrun)) $nextrun = $this->db->jdate($objp->datestart);
|
if (empty($nextrun)) {
|
||||||
|
$nextrun = $this->db->jdate($objp->datestart);
|
||||||
|
}
|
||||||
|
|
||||||
if ($line == 0 || ($nextrun < $cronstatic->datenextrun && (empty($objp->nbrun) || empty($objp->maxrun) || $objp->nbrun < $objp->maxrun))) {
|
if ($line == 0 || ($nextrun < $cronstatic->datenextrun && (empty($objp->nbrun) || empty($objp->maxrun) || $objp->nbrun < $objp->maxrun))) {
|
||||||
$cronstatic->id = $objp->rowid;
|
$cronstatic->id = $objp->rowid;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user