Revision: 2565
https://sourceforge.net/p/mrbs/code/2565/
Author: cimorrison
Date: 2012-11-27 18:28:48 +0000 (Tue, 27 Nov 2012)
Log Message:
-----------
Fixed major bug when editing an individual entry in a series that caused a new
series to be created alongside the original series.
Modified Paths:
--------------
mrbs/trunk/web/edit_entry.php
mrbs/trunk/web/functions.inc
Modified: mrbs/trunk/web/edit_entry.php
===================================================================
--- mrbs/trunk/web/edit_entry.php 2012-11-27 18:13:38 UTC (rev 2564)
+++ mrbs/trunk/web/edit_entry.php 2012-11-27 18:28:48 UTC (rev 2565)
@@ -1244,10 +1244,10 @@
// Show the repeat fields if (a) it's a new booking and repeats are allowed,
-// or else if it's an existing booking. (It's not particularly obvious but
+// or else if it's an existing booking and it's a series. (It's not
particularly obvious but
// if edit_type is "series" then it means that either you're editing an
existing
// series or else you're making a new booking. This should be tidied up
sometime!)
-if ((($edit_type == "series") && $repeats_allowed) || isset($id))
+if (($edit_type == "series") && $repeats_allowed)
{
// If repeats aren't allowed or this is not a series then disable
// the repeat fields - they're for information only
@@ -1263,11 +1263,11 @@
// Repeat type
echo "<div id=\"rep_type\">\n";
- cho "<div id=\"rep_type\">\n"; r information only then disable up
sometime!) ious but ted alongside the original
series. �f@�� u���g+ ����g+ �
�g+ ���g+ �f@�� ��*�g+ �[@�� �Z@�� k���g+ 6
� �! �! `f@�� �f@�� xt�g+ �\@�� ����g+ ����g+ `f@�� `���g+ �f@�� �ol�g+ u���g+ `l�g+ �dl�g+ �il�g+ ����g+ xt�g+ �\@�� �[@�� k���g+ �! �! `f@�� �f@�� H>��g+ �]@�� ����g+ ����g+ `f@�� `���g+ �f@�� �f@�� �f@�� 8�
�g+ �p� �f@�� u���g+ ����g+ �]@�� p\@�� k���g+ G H I J K M N O P `f@�� �f@�� H���g+ @_@�� ����g+ ����g+ `f@�� 0ol�g+ u���g+ ��g+ �)��g+ `l�g+ �dl�g+ �il�g+ ����g+ H���g+ @_@�� �]@�� k���g+ 8���g+ @_@�� �]@�� k���g+ (���g+ @_@�� �]@�� k���g+ ���g+ @_@�� ^@�� k���g+
�nl�g+ u���g+ �il�g+ �X@�� �x��g+ e���g+ �dl�g+ �^@�� yx��g+ e���g+ `l�g+ �^@�� Zx��g+ e���g+ �$��g+ ��g+ �)��g+ `l�g+ �g+ �dl�g+ �il�g+ ����g+ 8�
�g+ �g�g+ �f@�� p���g+ �`@�� `_@�� k���g+ 5 6 7 8 : <