Revision: 2105
http://mrbs.svn.sourceforge.net/mrbs/?rev=2105&view=rev
Author: cimorrison
Date: 2011-10-18 00:11:59 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
Fixed bug causing resized bookings to be one period too long when in periods
mode
Modified Paths:
--------------
mrbs/branches/draggable_bookings/web/Themes/default/header.inc
Modified: mrbs/branches/draggable_bookings/web/Themes/default/header.inc
===================================================================
--- mrbs/branches/draggable_bookings/web/Themes/default/header.inc
2011-10-17 23:48:39 UTC (rev 2104)
+++ mrbs/branches/draggable_bookings/web/Themes/default/header.inc
2011-10-18 00:11:59 UTC (rev 2105)
@@ -71,7 +71,7 @@
$search_str, $locale_warning;
global $tbl_entry, $tbl_room, $tbl_area;
global $PHP_SELF, $HTTP_HOST, $QUERY_STRING;
- global $view_week_number, $weekstarts, $times_along_top;
+ global $view_week_number, $weekstarts, $times_along_top, $enable_periods;
global $auth, $max_level;
global $default_language_tokens, $disable_automatic_language_changing,
$override_locale;
global $lang_map_windows, $langs, $server_os;
@@ -1693,6 +1693,17 @@
{
data.start_seconds = newParams.seconds[0];
data.end_seconds =
newParams.seconds[newParams.seconds.length - 1];
+ <?php
+ if ($enable_periods)
+ {
+ // When we're dealing with periods the end time is defined
as
+ // the end of the last period (as opposed to the start of
the
+ // next slot in times mode)
+ ?>
+ data.end_seconds -= 60;
+ <?php
+ }
+ ?>
}
<?php
if ($page == 'day')
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits