Revision: 1110
http://mrbs.svn.sourceforge.net/mrbs/?rev=1110&view=rev
Author: cimorrison
Date: 2009-05-14 16:20:10 +0000 (Thu, 14 May 2009)
Log Message:
-----------
Fixed edit_entry form so that if a booking is being copied then the create_by
field is changed to be the current user rather than the original creator (they
could be different if it's an admin doing the copying).
Modified Paths:
--------------
mrbs/trunk/web/edit_entry.php
Modified: mrbs/trunk/web/edit_entry.php
===================================================================
--- mrbs/trunk/web/edit_entry.php 2009-05-13 21:45:04 UTC (rev 1109)
+++ mrbs/trunk/web/edit_entry.php 2009-05-14 16:20:10 UTC (rev 1110)
@@ -91,7 +91,9 @@
get_area_settings($area);
$name = $row['name'];
- $create_by = $row['create_by'];
+ // If we're copying an existing entry then we need to change the create_by
(they could be
+ // different if it's an admin doing the copying)
+ $create_by = (isset($copy)) ? getUserName() : $row['create_by'];
$description = $row['description'];
$start_day = strftime('%d', $row['start_time']);
$start_month = strftime('%m', $row['start_time']);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits