Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion class/actions_googleapi.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function doActions(&$parameters, $object, &$action, $hookmanager)
global $langs;

$contexts = explode(':', $parameters['context']);
if (in_array('actioncard', $contexts) && isset($parameters['TRemindTypes']) && (int) DOL_VERSION >= 23) {
if (in_array('actioncard', $contexts) && isset($parameters['TRemindTypes'])) {
$langs->load('googleapi@googleapi');
$parameters['TRemindTypes'] = array_merge(
$parameters['TRemindTypes'],
Expand Down
2 changes: 1 addition & 1 deletion tabs/action/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
'disabled' => (getDolGlobalString('MAIN_SMS_SENDMODE') ? 0 : 1),
];
}
$TDurationTypes =[
$TDurationTypes = [
'y' => $langs->trans('Years'),
'm' => $langs->trans('Month'),
'w' => $langs->trans('Weeks'),
Expand Down Expand Up @@ -2292,7 +2292,7 @@
*/
$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, [], 'multiple', 'contactid');

Check warning on line 2295 in tabs/action/card.php

View workflow job for this annotation

GitHub Actions / build

Line exceeds 300 characters; contains 304 characters
$conf->global->CONTACT_USE_SEARCH_TO_SELECT = $sav;
} else {
// Warning: MAIN_ACTIONCOM_CAN_ADD_ANY_CONTACT will hangs on large databases
Expand All @@ -2311,7 +2311,7 @@
print img_picto('', 'project', 'class="pictofixedwidth"');
$numprojet = $formproject->select_projects(($object->socid > 0 ? $object->socid : -1), (string) $object->fk_project, 'projectid', 0, 0, 1, 0, 0, 0, 0, '', 0, 0, 'maxwidth500 widthcentpercentminusxx');
if ($numprojet == 0) {
print ' &nbsp; <a href="' . DOL_URL_ROOT . '/projet/card.php?socid=' . $object->socid . '&action=create&token=' . newToken() . '&backtopage=' . urlencode($_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=edit') . '"><span class="fa fa-plus-circle valignmiddle paddingleft" title="' . $langs->trans("AddProject") . '"></span></a>';

Check warning on line 2314 in tabs/action/card.php

View workflow job for this annotation

GitHub Actions / build

Line exceeds 300 characters; contains 351 characters
}
print '</td></tr>';
}
Expand Down
Loading