forked from extern/egroupware
Resources: Allow 0 quantity & usable
This commit is contained in:
parent
1a94a0ef98
commit
754261ce56
@ -517,8 +517,11 @@ class resources_ui
|
|||||||
$content['picture_original'] = $content['picture_src'] == 'own_src'?
|
$content['picture_original'] = $content['picture_src'] == 'own_src'?
|
||||||
'webdav.php/apps/resources/'.$content['res_id'].'/.picture.jpg': $this->bo->get_picture($content['res_id'],true);
|
'webdav.php/apps/resources/'.$content['res_id'].'/.picture.jpg': $this->bo->get_picture($content['res_id'],true);
|
||||||
|
|
||||||
|
if(!$content['res_id'])
|
||||||
|
{
|
||||||
$content['quantity'] = $content['quantity'] ? $content['quantity'] : 1;
|
$content['quantity'] = $content['quantity'] ? $content['quantity'] : 1;
|
||||||
$content['useable'] = $content['useable'] ? $content['useable'] : 1;
|
$content['useable'] = $content['useable'] ? $content['useable'] : 1;
|
||||||
|
}
|
||||||
$content['accessory_of'] = $content['accessory_of'] ? $content['accessory_of'] : $accessory_of;
|
$content['accessory_of'] = $content['accessory_of'] ? $content['accessory_of'] : $accessory_of;
|
||||||
|
|
||||||
if($content['res_id'] && $content['accessory_of'] == -1)
|
if($content['res_id'] && $content['accessory_of'] == -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user