Update expensereport.class.php
This commit is contained in:
parent
acc2fcbddd
commit
2077f7ad96
@ -1520,13 +1520,13 @@ class ExpenseReport extends CommonObject
|
||||
$this->error=$obj->error;
|
||||
$this->errors=$obj->errors;
|
||||
//dol_print_error($this->db,get_class($this)."::getNextNumRef ".$obj->error);
|
||||
return "";
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
setEventMessages($langs->transnoentitiesnoconv("Error_EXPENSEREPORT_ADDON_NotDefined"), null, 'errors');
|
||||
$errors++;
|
||||
$this->error = "Error_EXPENSEREPORT_ADDON_NotDefined";
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user