Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into kanbanAdherenType
to resolve conflict
This commit is contained in:
commit
b8dc156c3b
@ -408,7 +408,7 @@ if ($resql) {
|
|||||||
$s .= '<a class="vendor-back" style="padding-left: 6px; padding-right: 6px" title="'.$langs->trans("Supplier").'" href="'.DOL_URL_ROOT.'/fourn/card.php?socid='.$obj->rowid.'">'.$langs->trans("Supplier").'</a>';
|
$s .= '<a class="vendor-back" style="padding-left: 6px; padding-right: 6px" title="'.$langs->trans("Supplier").'" href="'.DOL_URL_ROOT.'/fourn/card.php?socid='.$obj->rowid.'">'.$langs->trans("Supplier").'</a>';
|
||||||
} elseif ($obj->type == 3) {
|
} elseif ($obj->type == 3) {
|
||||||
// User
|
// User
|
||||||
$s .= '<a class="user-back" style="padding-left: 6px; padding-right: 6px" title="'.$langs->trans("Employee").'" href="'.DOL_URL_ROOT.'/user/card.php?id='.$obj->id.'">'.$langs->trans("Employee").'</a>';
|
$s .= '<a class="user-back" style="padding-left: 6px; padding-right: 6px" title="'.$langs->trans("Employee").'" href="'.DOL_URL_ROOT.'/user/card.php?id='.$obj->rowid.'">'.$langs->trans("Employee").'</a>';
|
||||||
}
|
}
|
||||||
print $s;
|
print $s;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
@ -2677,7 +2677,10 @@ class Ticket extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set status to "answered" if not set yet, but only if internal user and not private message
|
// Set status to "answered" if not set yet, but only if internal user and not private message
|
||||||
if ($object->status < 3 && !$user->socid && !$private) {
|
// Or set status to "answered" if the client has answered and if the ticket has started
|
||||||
|
if (($object->status < self::STATUS_IN_PROGRESS && !$user->socid && !$private) ||
|
||||||
|
($object->status > self::STATUS_IN_PROGRESS && $public_area)
|
||||||
|
) {
|
||||||
$object->setStatut(3);
|
$object->setStatut(3);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user