Topic: LuxCal 4.7.0 - Problem when editing one occurrence of repeating event
A bug in V4.7.0 causes the following problem:
When editing one occurrence of a repeating or multi-day event, the other days of the event disappear.
When deleting one occurrence of a repeating or multi-day event, the whole event is deleted.
To fix this problem changes to two files are required. You can download the changed files here.
You can also fix this problem by applying the following changes:
1. edit file pages/eventform1.php and just after line 49 (<input type='hidden' name='eid' value='{$eid}'>) add the following line . . .
<input type='hidden' name='evD' value='{$evD}'>
2. edit file pages/event.php and change line 107 from . . .
$ediN = 0;
to . . .
$ediN = (isset($_POST['ediN'])) ? $_POST['ediN'] : 0; //0: not relevant, 1: occurrence, 2: series
and change line 115 from . . .
$ediN = ($mode == 'edi' and is_numeric($_POST['action'][3])) ? $_POST['action'][3] : 0; //0: not relevant, 1: occurrence, 2: series
to . . .
if ($mode == 'edi' and is_numeric($_POST['action'][3])) { $ediN = $_POST['action'][3]; } //0: not relevant, 1: occurrence, 2: series
and change line 222 from . . .
if (!empty($evD)) { $sda = IDtoDD($evD); }
to . . .
if (!empty($evD) and empty($sda)) { $sda = IDtoDD($evD); }
Use cut and paste!
All users of v4.7.0 are advised to implement these changes.
Roel