mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:29:25 +01:00
Make sure cat_id is not null before merging content otherwise it would override the fetched content wrong value
This commit is contained in:
parent
4debde6efa
commit
872b272459
@ -480,7 +480,7 @@ class resources_ui
|
||||
if (isset($_GET['res_id'])) $res_id = $_GET['res_id'];
|
||||
if (isset($nm_session_data['filter2']) && $nm_session_data['filter2'] > 0) $accessory_of = $nm_session_data['filter2'];
|
||||
if (isset($_GET['accessory_of'])) $accessory_of = $_GET['accessory_of'];
|
||||
$content = is_array($content) ? $content : array('res_id' => $res_id, 'cat_id' => $content['cat_id']);
|
||||
$content = is_array($content) ? $content : array('res_id' => $res_id) + ($content['cat_id'] ? ['cat_id' => $content['cat_id']] : []);
|
||||
if ($res_id > 0)
|
||||
{
|
||||
$content = array_merge($this->bo->read($res_id), $content);
|
||||
|
Loading…
Reference in New Issue
Block a user