r56098 - /trunk/resources/inc/class.resources_bo.inc.php

classic Classic list List threaded Threaded
1 message Options
nathangray nathangray
Reply | Threaded
Open this post in threaded view
|

r56098 - /trunk/resources/inc/class.resources_bo.inc.php

Author: nathangray
Date: Mon May  9 22:27:46 2016
New Revision: 56098

URL: http://svn.stylite.de/viewvc/egroupware?rev=56098&view=rev
Log:
In link_query conflict check decrement quantity available with real quantity used by calendar

Modified:
    trunk/resources/inc/class.resources_bo.inc.php

Modified: trunk/resources/inc/class.resources_bo.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/resources/inc/class.resources_bo.inc.php?rev=56098&r1=56097&r2=56098&view=diff
==============================================================================
--- trunk/resources/inc/class.resources_bo.inc.php (original)
+++ trunk/resources/inc/class.resources_bo.inc.php Mon May  9 22:27:46 2016
@@ -673,10 +673,10 @@
  $res_info_cache[$resource_id]['useable'] = 1;
  }
  // now decrement this quantity useable
- // TODO : decrement with real event quantity, not 1
- // but this quantity is not given by calendar search, we should re-use a cal object
- // to load specific cal infos, like quantity... lot of requests
- $res_info_cache[$resource_id]['useable']--;
+ $quantity = 1;
+ $this->bocal->so->split_status($part_detail,$quantity);
+
+ $res_info_cache[$resource_id]['useable']-=$quantity;
  }
  }
  }


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
eGroupWare-cvs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs