fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [6824] bkbooking: removed checking for creating booki


From: Kjell Arne Espedal
Subject: [Fmsystem-commits] [6824] bkbooking: removed checking for creating bookings in the past
Date: Fri, 21 Jan 2011 12:32:37 +0000

Revision: 6824
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6824
Author:   kjell
Date:     2011-01-21 12:32:36 +0000 (Fri, 21 Jan 2011)
Log Message:
-----------
bkbooking:  removed checking for creating bookings in the past

Modified Paths:
--------------
    trunk/booking/inc/class.uibooking.inc.php

Modified: trunk/booking/inc/class.uibooking.inc.php
===================================================================
--- trunk/booking/inc/class.uibooking.inc.php   2011-01-21 10:39:14 UTC (rev 
6823)
+++ trunk/booking/inc/class.uibooking.inc.php   2011-01-21 12:32:36 UTC (rev 
6824)
@@ -232,17 +232,17 @@
                                $errors = $this->bo->validate($booking);
 
 
-                               if (strtotime($_POST['from_']) < $today[0])
-                               {
-                                       if($_POST['recurring'] == 'on' || 
$_POST['outseason'] == 'on')
-                                       {                                       
-                                               $errors['booking'] = lang('Can 
not repeat from a date in the past');
-                                       }
-                                       else
-                                       {
-                                               $errors['booking'] = lang('Can 
not create a booking in the past');
-                                       }
-                               } 
+#                              if (strtotime($_POST['from_']) < $today[0])
+#                              {
+#                                      if($_POST['recurring'] == 'on' || 
$_POST['outseason'] == 'on')
+#                                      {                                       
+#                                              $errors['booking'] = lang('Can 
not repeat from a date in the past');
+#                                      }
+#                                      else
+#                                      {
+#                                              $errors['booking'] = lang('Can 
not create a booking in the past');
+#                                      }
+#                              } 
                                if (!$allocation_id &&  $_POST['outseason'] == 
'on')
                                {
                                        $errors['booking'] = lang('This booking 
is not connected to a season');




reply via email to

[Prev in Thread] Current Thread [Next in Thread]