In link_query conflict check decrement quantity available with real quantity used by calendar

This commit is contained in:
Nathan Gray 2016-05-09 20:27:46 +00:00
parent d321f78eb1
commit f550d4a503

View File

@ -673,10 +673,10 @@ class resources_bo
$res_info_cache[$resource_id]['useable'] = 1; $res_info_cache[$resource_id]['useable'] = 1;
} }
// now decrement this quantity useable // now decrement this quantity useable
// TODO : decrement with real event quantity, not 1 $quantity = 1;
// but this quantity is not given by calendar search, we should re-use a cal object $this->bocal->so->split_status($part_detail,$quantity);
// to load specific cal infos, like quantity... lot of requests
$res_info_cache[$resource_id]['useable']--; $res_info_cache[$resource_id]['useable']-=$quantity;
} }
} }
} }