Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
8db9b30fbb
4 changed files with 12 additions and 9 deletions
|
|
@ -214,7 +214,7 @@ foreach ($dirmodels as $reldir) {
|
|||
}
|
||||
|
||||
if ($module->isEnabled()) {
|
||||
print '<tr class="oddeven"><td>'.$module->nom."</td><td>\n";
|
||||
print '<tr class="oddeven"><td>'.$module->name."</td><td>\n";
|
||||
print $module->info($langs);
|
||||
print '</td>';
|
||||
|
||||
|
|
|
|||
|
|
@ -1508,6 +1508,9 @@ $totalarray['val']['f.total_vat'] = 0;
|
|||
$totalarray['val']['f.total_localtax1'] = 0;
|
||||
$totalarray['val']['f.total_localtax1'] = 0;
|
||||
$totalarray['val']['f.total_ttc'] = 0;
|
||||
$totalarray['val']['totalam']=0;
|
||||
$totalarray['val']['rtp']=0;
|
||||
|
||||
$imaxinloop = ($limit ? min($num, $limit) : $num);
|
||||
while ($i < $imaxinloop) {
|
||||
$obj = $db->fetch_object($resql);
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be includ
|
|||
$result = restrictedArea($user, $object->element, $object->id, 'paiementfourn', '');
|
||||
|
||||
// Security check
|
||||
$socid = ''; // Prevents PHP Warning: Undefined variable $socid on line 55
|
||||
if ($user->socid) {
|
||||
$socid = $user->socid;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -308,7 +308,14 @@ class Task extends CommonObjectLine
|
|||
|
||||
if (!$error) {
|
||||
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."projet_task");
|
||||
// Update extrafield
|
||||
$result = $this->insertExtraFields();
|
||||
if ($result < 0) {
|
||||
$error++;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$error) {
|
||||
if (!$notrigger) {
|
||||
// Call trigger
|
||||
$result = $this->call_trigger('TASK_CREATE', $user);
|
||||
|
|
@ -319,14 +326,6 @@ class Task extends CommonObjectLine
|
|||
}
|
||||
}
|
||||
|
||||
// Update extrafield
|
||||
if (!$error) {
|
||||
$result = $this->insertExtraFields();
|
||||
if ($result < 0) {
|
||||
$error++;
|
||||
}
|
||||
}
|
||||
|
||||
// Commit or rollback
|
||||
if ($error) {
|
||||
foreach ($this->errors as $errmsg) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue