diff --git a/htdocs/comm/action/list.php b/htdocs/comm/action/list.php index db0a8e1a3f3..9f1a9e3573f 100644 --- a/htdocs/comm/action/list.php +++ b/htdocs/comm/action/list.php @@ -746,12 +746,12 @@ $viewmode .= ''; $tmpforcreatebutton = dol_getdate(dol_now('tzuserrel'), true); -$newparam = '&month='.str_pad((string) $month, 2, "0", STR_PAD_LEFT).'&year='.$tmpforcreatebutton['year']; +$newparam = '?month='.str_pad((string) $month, 2, "0", STR_PAD_LEFT).'&year='.$tmpforcreatebutton['year']; $url = DOL_URL_ROOT.'/comm/action/card.php?action=create'; $url .= '&apyear='.$tmpforcreatebutton['year'].'&apmonth='.$tmpforcreatebutton['mon'].'&apday='.$tmpforcreatebutton['mday']; $url .= '&aphour='.$tmpforcreatebutton['hours'].'&apmin='.$tmpforcreatebutton['minutes']; -$url .= '&backtopage='.urlencode($_SERVER["PHP_SELF"].($newparam ? '?'.$newparam : '')); +$url .= '&backtopage='.urlencode($_SERVER["PHP_SELF"].$newparam); $newcardbutton = dolGetButtonTitle($langs->trans('AddAction'), '', 'fa fa-plus-circle', $url, '', (int) ($user->hasRight('agenda', 'myactions', 'create') || $user->hasRight('agenda', 'allactions', 'create')));