diff --git a/htdocs/admin/agenda_reminder.php b/htdocs/admin/agenda_reminder.php
index c330849a4d3..505d23be49b 100644
--- a/htdocs/admin/agenda_reminder.php
+++ b/htdocs/admin/agenda_reminder.php
@@ -268,6 +268,23 @@ if (!isModEnabled('cron')) {
}
}
+// AGENDA REMINDER SMS
+print '
| '.$langs->trans("ActionAssignedTo").' | ';
print ' ';
- print $form->select_dolusers_forevent(($action == 'create' ? 'add' : 'update'), 'assignedtouser', 1, array(), 0, '', array(), '0', 0, 0, 'u.statut:<>:0', 1, $listofuserid, $listofcontactid, $listofotherid, (int) $caneditdateorowner);
+ print $form->select_dolusers_forevent(($action == 'create' ? 'add' : 'update'), 'assignedtouser', 1, [], 0, '', [], '0', 0, 0, 'u.statut:<>:0', 1, $listofuserid, $listofcontactid, $listofotherid, (int) $caneditdateorowner);
print ' ';
/*if (in_array($user->id,array_keys($listofuserid)))
{
@@ -2250,7 +2257,7 @@ if ($id > 0 && $action != 'create') {
print ' |
| '.$langs->trans("ActionOnCompany").' | ';
print '';
print ' ';
- $events = array(); // 'method'=parameter action of url, 'url'=url to call that return new list of contacts
+ $events = []; // 'method'=parameter action of url, 'url'=url to call that return new list of contacts
$events[] = array('method' => 'getContacts', 'url' => dol_buildpath('/core/ajax/contacts.php?showempty=1&token='.currentToken(), 1), 'htmlname' => 'contactid', 'params' => array('add-customer-contact' => 'disabled'));
// TODO Refresh also list of project if conf PROJECT_ALLOW_TO_LINK_FROM_OTHER_COMPANY not defined with list linked to socid ?
// FIXME If we change company, we may get a project that does not match
@@ -2267,15 +2274,15 @@ if ($id > 0 && $action != 'create') {
// FIXME Use the select_contact supporting the "multiple"
/*
$selected = array_keys($object->socpeopleassigned);
- print $form->select_contact(getDolGlobalString('MAIN_ACTIONCOM_CAN_ADD_ANY_CONTACT') ? 0 : $object->socid, $selected, 'socpeopleassigned', 1, '', '', 1, 'minwidth300 widthcentpercentminusx', false, 0, 0, array());
+ print $form->select_contact(getDolGlobalString('MAIN_ACTIONCOM_CAN_ADD_ANY_CONTACT') ? 0 : $object->socid, $selected, 'socpeopleassigned', 1, '', '', 1, 'minwidth300 widthcentpercentminusx', false, 0, 0, []);
*/
$sav = getDolGlobalString('CONTACT_USE_SEARCH_TO_SELECT');
$conf->global->CONTACT_USE_SEARCH_TO_SELECT = 0;
- print $form->selectcontacts(getDolGlobalString('MAIN_ACTIONCOM_CAN_ADD_ANY_CONTACT') ? 0 : ($object->socid > 0 ? $object->socid : -1), array_keys($object->socpeopleassigned), 'socpeopleassigned[]', 1, '', '', 1, 'minwidth300 widthcentpercentminusx', 0, 0, 0, array(), 'multiple', 'contactid');
+ print $form->selectcontacts(getDolGlobalString('MAIN_ACTIONCOM_CAN_ADD_ANY_CONTACT') ? 0 : ($object->socid > 0 ? $object->socid : -1), array_keys($object->socpeopleassigned), 'socpeopleassigned[]', 1, '', '', 1, 'minwidth300 widthcentpercentminusx', 0, 0, 0, [], 'multiple', 'contactid');
$conf->global->CONTACT_USE_SEARCH_TO_SELECT = $sav;
} else {
// Warning: MAIN_ACTIONCOM_CAN_ADD_ANY_CONTACT will hangs on large databases
- print $form->selectcontacts(getDolGlobalString('MAIN_ACTIONCOM_CAN_ADD_ANY_CONTACT') ? 0 : $object->socid, array_keys($object->socpeopleassigned), 'socpeopleassigned[]', 1, '', '', 1, 'minwidth300 widthcentpercentminusx', 0, 0, 0, array(), 'multiple', 'contactid');
+ print $form->selectcontacts(getDolGlobalString('MAIN_ACTIONCOM_CAN_ADD_ANY_CONTACT') ? 0 : $object->socid, array_keys($object->socpeopleassigned), 'socpeopleassigned[]', 1, '', '', 1, 'minwidth300 widthcentpercentminusx', 0, 0, 0, [], 'multiple', 'contactid');
}
print ' ';
print ' | ';
@@ -2382,7 +2389,7 @@ if ($id > 0 && $action != 'create') {
print '
';
// Other attributes
- $parameters = array();
+ $parameters = [];
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
if (empty($reshook)) {
@@ -2525,11 +2532,11 @@ if ($id > 0 && $action != 'create') {
// Clone event
if ($action == 'clone') {
- $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.GETPOST('id'), $langs->trans('ToClone'), $langs->trans('ConfirmCloneEvent', $object->label), 'confirm_clone', array(), 'yes', 1);
+ $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.GETPOST('id'), $langs->trans('ToClone'), $langs->trans('ConfirmCloneEvent', $object->label), 'confirm_clone', [], 'yes', 1);
}
// Call Hook formConfirm
- $parameters = array();
+ $parameters = [];
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
if (empty($reshook)) {
$formconfirm .= $hookmanager->resPrint;
@@ -2572,7 +2579,7 @@ if ($id > 0 && $action != 'create') {
$linkback .= '';
// Add more views from hooks
- $parameters = array();
+ $parameters = [];
$reshook = $hookmanager->executeHooks('addCalendarView', $parameters, $object, $action);
if (empty($reshook)) {
$linkback .= $hookmanager->resPrint;
@@ -2675,7 +2682,7 @@ if ($id > 0 && $action != 'create') {
if ($object->recurid) {
print '| '.$langs->trans("ActionAssignedTo").' | ';
- $listofuserid = array();
+ $listofuserid = [];
if (empty($donotclearsession)) {
if ($object->userownerid > 0) {
$listofuserid[$object->userownerid] = array(
@@ -2715,10 +2722,10 @@ if ($id > 0 && $action != 'create') {
}
}
- $listofcontactid = array(); // not used yet
- $listofotherid = array(); // not used yet
+ $listofcontactid = []; // not used yet
+ $listofotherid = []; // not used yet
print ' ';
- print $form->select_dolusers_forevent('view', 'assignedtouser', 1, array(), 0, '', array(), '0', 0, 0, '', ($object->datep != $object->datef) ? 1 : 0, $listofuserid, $listofcontactid, $listofotherid);
+ print $form->select_dolusers_forevent('view', 'assignedtouser', 1, [], 0, '', [], '0', 0, 0, '', ($object->datep != $object->datef) ? 1 : 0, $listofuserid, $listofcontactid, $listofotherid);
print ' ';
/*
if ($object->datep != $object->datef && in_array($user->id,array_keys($listofuserid)))
@@ -2886,7 +2893,7 @@ if ($id > 0 && $action != 'create') {
*/
print '';
- $parameters = array();
+ $parameters = [];
$reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
if (empty($reshook)) {
if ($action != 'edit') {
@@ -2931,7 +2938,7 @@ if ($id > 0 && $action != 'create') {
if (getDolGlobalString('AGENDA_ENABLE_LINKED_ELEMENTS')) {
// Show links to link elements
- $tmparray = $form->showLinkToObjectBlock($object, array(), array('myobject'), 1);
+ $tmparray = $form->showLinkToObjectBlock($object, [], array('myobject'), 1);
if (is_array($tmparray)) {
$linktoelem = $tmparray['linktoelem'];
$htmltoenteralink = $tmparray['htmltoenteralink'];
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index e1b3e2b0a7b..b00005b4190 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -1917,6 +1917,8 @@ AGENDA_REMINDER_BROWSERHelp = When remind date is reached, a popup is shown by t
AGENDA_REMINDER_BROWSER_SOUND = Enable sound notification
AGENDA_REMINDER_EMAIL = Allow event reminders by emails
AGENDA_REMINDER_EMAIL_NOTE = Note: The frequency of the scheduled job %s must be enough to be sure that the remind are sent at the correct moment.
+AGENDA_REMINDER_SMS = Allow event reminders by sms
+AGENDA_REMINDER_SMSHelp = When remind date is reached, a sms is sent. Remind option/delay is defined by the user on event creation.
AGENDA_SHOW_LINKED_OBJECT = Show linked object into agenda view
AGENDA_USE_EVENT_TYPE = Use events types (managed in menu Setup -> Dictionaries -> Type of agenda events)
AGENDA_USE_EVENT_TYPE_DEFAULT = Automatically set this default value for type of event in event create form
|