Fix option AGENDA_SUPPORT_PRIORITY_IN_EVENTS

This commit is contained in:
Laurent Destailleur 2020-09-01 04:29:57 +02:00
parent e353d4a42d
commit b69a992324

View File

@ -1579,9 +1579,11 @@ if ($id > 0)
}
// Priority
print '<tr><td class="titlefieldcreate nowrap">'.$langs->trans("Priority").'</td><td>';
print '<input type="text" name="priority" value="'.($object->priority ? $object->priority : '').'" size="5">';
print '</td></tr>';
if (! empty($conf->global->AGENDA_SUPPORT_PRIORITY_IN_EVENTS)) {
print '<tr><td class="titlefieldcreate nowrap">'.$langs->trans("Priority").'</td><td>';
print '<input type="text" name="priority" value="'.($object->priority ? $object->priority : '').'" size="5">';
print '</td></tr>';
}
// Object linked
if (!empty($object->fk_element) && !empty($object->elementtype))