Changeset:
f1368b72e879
https://sourceforge.net/p/mrbs/hg-code/ci/f1368b72e879f86eda2e73002d232011519c151e
Author:
Campbell Morrison <[email protected]>
Date:
Sat Dec 19 10:15:30 2015 +0000
Log message:
Fixed bug whereby the limit on the number of bookings isn't applied properly if
an existing series is being modified and there is at least one single entry in
the same interval.
diffstat:
web/mrbs_sql.inc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r ebf568ed6bd4 -r f1368b72e879 web/mrbs_sql.inc
--- a/web/mrbs_sql.inc Fri Dec 18 17:54:24 2015 +0000
+++ b/web/mrbs_sql.inc Sat Dec 19 10:15:30 2015 +0000
@@ -188,7 +188,7 @@
}
if ($repignore > 0)
{
- $sql .= " AND E.repeat_id <> $repignore";
+ $sql .= " AND (E.repeat_id IS NULL OR E.repeat_id <> $repignore)";
}
$existing[$location][$interval_type][$interval_start] = sql_query1($sql);
------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits