Fix: The backto use bad url.
This commit is contained in:
parent
9c31e6b2db
commit
fb074daaf1
@ -455,7 +455,7 @@ if ($action == 'create')
|
|||||||
print '<tr><td>'.$langs->trans("Title").'</td><td><input type="text" name="label" size="60" value="'.GETPOST('label').'"></td></tr>';
|
print '<tr><td>'.$langs->trans("Title").'</td><td><input type="text" name="label" size="60" value="'.GETPOST('label').'"></td></tr>';
|
||||||
|
|
||||||
// Full day
|
// Full day
|
||||||
print '<tr><td>'.$langs->trans("EventOnFullDay").'</td><td><input type="checkbox" id="fullday" name="fullday" '.(GETPOST('fullday')?' checked="checked"':'').'></td></tr>';
|
print '<tr><td class="fieldrequired">'.$langs->trans("EventOnFullDay").'</td><td><input type="checkbox" id="fullday" name="fullday" '.(GETPOST('fullday')?' checked="checked"':'').'></td></tr>';
|
||||||
|
|
||||||
// Date start
|
// Date start
|
||||||
$datep=$actioncomm->datep;
|
$datep=$actioncomm->datep;
|
||||||
@ -699,7 +699,7 @@ if ($id)
|
|||||||
print '<tr><td>'.$langs->trans("Title").'</td><td colspan="3"><input type="text" name="label" size="50" value="'.$act->label.'"></td></tr>';
|
print '<tr><td>'.$langs->trans("Title").'</td><td colspan="3"><input type="text" name="label" size="50" value="'.$act->label.'"></td></tr>';
|
||||||
|
|
||||||
// Full day event
|
// Full day event
|
||||||
print '<tr><td>'.$langs->trans("EventOnFullDay").'</td><td colspan="3"><input type="checkbox" id="fullday" name="fullday" '.($act->fulldayevent?' checked="checked"':'').'></td></tr>';
|
print '<tr><td class="fieldrequired">'.$langs->trans("EventOnFullDay").'</td><td colspan="3"><input type="checkbox" id="fullday" name="fullday" '.($act->fulldayevent?' checked="checked"':'').'></td></tr>';
|
||||||
|
|
||||||
// Date start
|
// Date start
|
||||||
print '<tr><td nowrap="nowrap" class="fieldrequired">'.$langs->trans("DateActionStart").'</td><td colspan="3">';
|
print '<tr><td nowrap="nowrap" class="fieldrequired">'.$langs->trans("DateActionStart").'</td><td colspan="3">';
|
||||||
|
|||||||
@ -746,11 +746,13 @@ if (! is_array($theme_datacolor)) $theme_datacolor=array(array(120,130,150), arr
|
|||||||
if (empty($action) || $action == 'show_month') // View by month
|
if (empty($action) || $action == 'show_month') // View by month
|
||||||
{
|
{
|
||||||
$newparam=$param; // newparam is for birthday links
|
$newparam=$param; // newparam is for birthday links
|
||||||
|
$newparam=preg_replace('/showbirthday=/i','showbirthday_=',$newparam); // To avoid replacement when replace day= is done
|
||||||
$newparam=preg_replace('/action=show_month&?/i','',$newparam);
|
$newparam=preg_replace('/action=show_month&?/i','',$newparam);
|
||||||
$newparam=preg_replace('/action=show_week&?/i','',$newparam);
|
$newparam=preg_replace('/action=show_week&?/i','',$newparam);
|
||||||
$newparam=preg_replace('/day=[0-9][0-9]&?/i','',$newparam);
|
$newparam=preg_replace('/day=[0-9]+&?/i','',$newparam);
|
||||||
$newparam=preg_replace('/month=[0-9][0-9]&?/i','',$newparam);
|
$newparam=preg_replace('/month=[0-9]+&?/i','',$newparam);
|
||||||
$newparam=preg_replace('/year=[0-9]+&?/i','',$newparam);
|
$newparam=preg_replace('/year=[0-9]+&?/i','',$newparam);
|
||||||
|
$newparam=preg_replace('/showbirthday_=/i','showbirthday=',$newparam); // Restore correct parameter
|
||||||
echo '<table width="100%" class="nocellnopadd">';
|
echo '<table width="100%" class="nocellnopadd">';
|
||||||
echo ' <tr class="liste_titre">';
|
echo ' <tr class="liste_titre">';
|
||||||
$i=0;
|
$i=0;
|
||||||
@ -812,11 +814,13 @@ if (empty($action) || $action == 'show_month') // View by month
|
|||||||
elseif ($action == 'show_week') // View by week
|
elseif ($action == 'show_week') // View by week
|
||||||
{
|
{
|
||||||
$newparam=$param; // newparam is for birthday links
|
$newparam=$param; // newparam is for birthday links
|
||||||
|
$newparam=preg_replace('/showbirthday=/i','showbirthday_=',$newparam); // To avoid replacement when replace day= is done
|
||||||
$newparam=preg_replace('/action=show_month&?/i','',$newparam);
|
$newparam=preg_replace('/action=show_month&?/i','',$newparam);
|
||||||
$newparam=preg_replace('/action=show_week&?/i','',$newparam);
|
$newparam=preg_replace('/action=show_week&?/i','',$newparam);
|
||||||
$newparam=preg_replace('/day=[0-9][0-9]&?/i','',$newparam);
|
$newparam=preg_replace('/day=[0-9]+&?/i','',$newparam);
|
||||||
$newparam=preg_replace('/month=[0-9][0-9]&?/i','',$newparam);
|
$newparam=preg_replace('/month=[0-9]+&?/i','',$newparam);
|
||||||
$newparam=preg_replace('/year=[0-9]+&?/i','',$newparam);
|
$newparam=preg_replace('/year=[0-9]+&?/i','',$newparam);
|
||||||
|
$newparam=preg_replace('/showbirthday_=/i','showbirthday=',$newparam); // Restore correct parameter
|
||||||
echo '<table width="100%" class="nocellnopadd">';
|
echo '<table width="100%" class="nocellnopadd">';
|
||||||
echo ' <tr class="liste_titre">';
|
echo ' <tr class="liste_titre">';
|
||||||
$i=0;
|
$i=0;
|
||||||
@ -868,9 +872,6 @@ else // View by day
|
|||||||
$newparam=$param; // newparam is for birthday links
|
$newparam=$param; // newparam is for birthday links
|
||||||
$newparam=preg_replace('/action=show_month&?/i','',$newparam);
|
$newparam=preg_replace('/action=show_month&?/i','',$newparam);
|
||||||
$newparam=preg_replace('/action=show_week&?/i','',$newparam);
|
$newparam=preg_replace('/action=show_week&?/i','',$newparam);
|
||||||
$newparam=preg_replace('/day=[0-9][0-9]&?/i','',$newparam);
|
|
||||||
$newparam=preg_replace('/month=[0-9][0-9]&?/i','',$newparam);
|
|
||||||
$newparam=preg_replace('/year=[0-9]+&?/i','',$newparam);
|
|
||||||
// Code to show just one day
|
// Code to show just one day
|
||||||
$style='cal_current_month';
|
$style='cal_current_month';
|
||||||
$today=0;
|
$today=0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user