Revision: 1062
http://mrbs.svn.sourceforge.net/mrbs/?rev=1062&view=rev
Author: cimorrison
Date: 2009-03-22 17:42:56 +0000 (Sun, 22 Mar 2009)
Log Message:
-----------
Fixed bug that meant that the right area settings ($resolution, etc.) were not
being picked up if you were editing an existing booking and the system had more
than one area.
Modified Paths:
--------------
mrbs/trunk/web/edit_entry.php
Modified: mrbs/trunk/web/edit_entry.php
===================================================================
--- mrbs/trunk/web/edit_entry.php 2009-03-22 17:01:52 UTC (rev 1061)
+++ mrbs/trunk/web/edit_entry.php 2009-03-22 17:42:56 UTC (rev 1062)
@@ -30,6 +30,8 @@
}
// Get the timeslot settings (resolution, etc.) for this area
+// (We will need to update them later if we are editing an existing
+// booking - once we know the area for that booking)
get_area_settings($area);
// If we dont know the right date then make it up
@@ -81,6 +83,11 @@
$row = sql_row_keyed($res, 0);
sql_free($res);
+
+ // We've possibly got a new room and area, so we need to update the settings
+ // for this area.
+ $area = get_area($row['room_id']);
+ get_area_settings($area);
$name = $row['name'];
$create_by = $row['create_by'];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits