';
$morehtmlref .= $object->subject;
@@ -861,7 +782,8 @@
}
// Thirdparty
- if (!empty($conf->societe->enabled)) {
+ if (!empty($conf->societe->enabled))
+ {
$morehtmlref .= '
'.$langs->trans('ThirdParty').' ';
if ($action != 'editcustomer' && $object->fk_statut < 8 && !$user->socid && $user->rights->ticket->write) {
$morehtmlref .= '
: ';
@@ -874,10 +796,12 @@
}
// Project
- if (!empty($conf->projet->enabled)) {
+ if (!empty($conf->projet->enabled))
+ {
$langs->load("projects");
$morehtmlref .= '
'.$langs->trans('Project').' ';
- if ($user->rights->ticket->write) {
+ if ($user->rights->ticket->write)
+ {
if ($action != 'classify')
$morehtmlref .= '
';
$morehtmlref .= ' : ';
@@ -938,14 +862,14 @@
// Creation date
print '
';
print '';
print $langs->trans("AssignedTo");
- if ($object->fk_statut < $object::STATUS_CLOSED && GETPOST('set', 'alpha') != "assign_ticket" && $user->rights->ticket->manage) {
+ if ($object->fk_statut < 8 && GETPOST('set', 'alpha') != "assign_ticket" && $user->rights->ticket->manage) {
print ' | '.img_edit($langs->trans('Modify'), '').' | ';
}
print ' ';
@@ -970,6 +894,8 @@
if ($object->fk_user_assign > 0) {
$userstat->fetch($object->fk_user_assign);
print $userstat->getNomUrl(1);
+ } else {
+ print $langs->trans('None');
}
// Show user list to assignate one if status is "read"
@@ -990,7 +916,7 @@
print '';
print $langs->trans('Progression').' | ';
print ' | ';
- if ($action != 'progression' && $object->fk_statut < $object::STATUS_CLOSED && !$user->socid) {
+ if ($action != 'progression' && $object->fk_statut < 8 && !$user->socid) {
print ''.img_edit($langs->trans('Modify')).' | ';
}
print ' ';
@@ -1049,10 +975,11 @@
print ' |