actioncomm ok
This commit is contained in:
parent
e4bd4ce78e
commit
79fe5ee34c
@ -233,6 +233,7 @@ if (empty($reshook))
|
|||||||
$uploaddir = true;
|
$uploaddir = true;
|
||||||
// Only users that can delete any event can remove records.
|
// Only users that can delete any event can remove records.
|
||||||
$permissiontodelete = $user->rights->agenda->allactions->delete;
|
$permissiontodelete = $user->rights->agenda->allactions->delete;
|
||||||
|
$permissiontoadd = $user->rights->agenda->myactions->create;
|
||||||
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -297,6 +298,7 @@ if ($user->rights->agenda->allactions->delete)
|
|||||||
$arrayofmassactions['predelete'] = '<span class="fa fa-trash paddingrightonly"></span>'.$langs->trans("Delete");
|
$arrayofmassactions['predelete'] = '<span class="fa fa-trash paddingrightonly"></span>'.$langs->trans("Delete");
|
||||||
}
|
}
|
||||||
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) $arrayofmassactions = array();
|
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) $arrayofmassactions = array();
|
||||||
|
if ($user->rights->agenda->myactions->create) $arrayofmassactions['preaffecttag'] = '<span class="fa fa-tag paddingrightonly"></span>'.$langs->trans("AffectTag");
|
||||||
$massactionbutton = $form->selectMassAction('', $arrayofmassactions);
|
$massactionbutton = $form->selectMassAction('', $arrayofmassactions);
|
||||||
|
|
||||||
$sql = "SELECT";
|
$sql = "SELECT";
|
||||||
@ -532,6 +534,7 @@ if ($resql)
|
|||||||
|
|
||||||
print $s;
|
print $s;
|
||||||
|
|
||||||
|
$objecttmp = new ActionComm($db);
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';
|
||||||
|
|
||||||
$moreforfilter = '';
|
$moreforfilter = '';
|
||||||
|
|||||||
@ -64,7 +64,7 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|||||||
print '<input type="hidden" name="year" value="'.$year.'">';
|
print '<input type="hidden" name="year" value="'.$year.'">';
|
||||||
print '<input type="hidden" name="month" value="'.$month.'">';
|
print '<input type="hidden" name="month" value="'.$month.'">';
|
||||||
print '<input type="hidden" name="day" value="'.$day.'">';
|
print '<input type="hidden" name="day" value="'.$day.'">';
|
||||||
if ($massaction != 'predelete') { // When $massaction == 'predelete', action may be already output to 'delete' by the mass action system.
|
if ($massaction != 'predelete' && $massaction != 'preaffecttag') { // When $massaction == 'predelete', action may be already output to 'delete' by the mass action system.
|
||||||
print '<input type="hidden" name="action" value="'.$action.'">';
|
print '<input type="hidden" name="action" value="'.$action.'">';
|
||||||
}
|
}
|
||||||
print '<input type="hidden" name="search_showbirthday" value="'.$showbirthday.'">';
|
print '<input type="hidden" name="search_showbirthday" value="'.$showbirthday.'">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user