Skip to content

Commit

Permalink
FIX #17 add-ons
Browse files Browse the repository at this point in the history
  • Loading branch information
bgenere committed Feb 23, 2017
1 parent 48d2054 commit 5e4d4dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cultivationtask.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ function displayTaskButtons($task)
print '<a class="butActionRefused" href="#" title="' . $langs->trans("NotAllowed") . '">' . $langs->trans('Modify') . '</a>';
}
// Delete button
if ($user->rights->projet->supprimer && ! $task->hasChildren() && ( ! $task->hasTimeSpent() || $conf->global->MAIN_VERSION_LAST_UPGRADE < "5")) {
if ($user->rights->projet->supprimer && ! $task->hasChildren() && ( $conf->global->MAIN_VERSION_LAST_UPGRADE < "5" || ! $task->hasTimeSpent() )) {
print '<a class="butActionDelete" href="' . $_SERVER['PHP_SELF'] . '?id=' . $task->id . '&amp;action=delete">' . $langs->trans('Delete') . '</a>';
} else {
print '<a class="butActionRefused" href="#" title="' . $langs->trans("NotAllowed") . '">' . $langs->trans('Delete') . '</a>';
Expand Down

0 comments on commit 5e4d4dd

Please sign in to comment.