mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
In link_query conflict check decrement quantity available with real quantity used by calendar
This commit is contained in:
parent
d321f78eb1
commit
f550d4a503
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user