Skip to content

Commit

Permalink
Ajout backtopag sur page peruser.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 15, 2014
1 parent 06dbc4e commit c97692a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/comm/action/peruser.php
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@
if (ids == \'none\') /* No event */
{
/* alert(\'no event\'); */
url = "'.DOL_URL_ROOT.'/comm/action/fiche.php?action=create&affectedto="+userid+"&datep="+year+month+day+hour+min+"00"
url = "'.DOL_URL_ROOT.'/comm/action/fiche.php?action=create&affectedto="+userid+"&datep="+year+month+day+hour+min+"00&backtopage='.urlencode($_SERVER["PHP_SELF"].'?year='.$year.'&month='.$month.'&day='.$day).'"
window.location.href = url;
}
else if (ids.indexOf(",") > -1) /* There is several events */
Expand Down

0 comments on commit c97692a

Please sign in to comment.