[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6520] bkbooking: bugfix generate allocation in seaso
From: |
Kjell Arne Espedal |
Subject: |
[Fmsystem-commits] [6520] bkbooking: bugfix generate allocation in season |
Date: |
Thu, 28 Oct 2010 07:23:49 +0000 |
Revision: 6520
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6520
Author: kjell
Date: 2010-10-28 07:23:48 +0000 (Thu, 28 Oct 2010)
Log Message:
-----------
bkbooking: bugfix generate allocation in season
Modified Paths:
--------------
trunk/booking/inc/class.boseason.inc.php
Modified: trunk/booking/inc/class.boseason.inc.php
===================================================================
--- trunk/booking/inc/class.boseason.inc.php 2010-10-27 17:30:12 UTC (rev
6519)
+++ trunk/booking/inc/class.boseason.inc.php 2010-10-28 07:23:48 UTC (rev
6520)
@@ -106,6 +106,7 @@
function generate_allocation($season_id, $date, $to, $interval,
$write=false)
{
+ $season = $this->so->read_single($season_id);
$this->authorize_write($season_id);
$valid = array();
$invalid = array();
@@ -120,8 +121,10 @@
$allocation['active'] = '1';
$allocation['from_'] =
$date->format("Y-m-d").' '.$talloc['from_'];
$allocation['to_'] =
$date->format("Y-m-d").' '.$talloc['to_'];
+ $allocation['building_name'] =
$season['building_name'];
$allocation['completed'] = 1;
$errors =
$this->bo_allocation->validate($allocation);
+
if(!$errors)
$valid[] = $allocation;
elseif
(count($this->bo_allocation->filter_conflict_errors($errors)) === 0)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6520] bkbooking: bugfix generate allocation in season,
Kjell Arne Espedal <=