Fix preset resource catagory from nextmatch

This commit is contained in:
Nathan Gray 2012-12-04 23:42:56 +00:00
parent e4133aa210
commit e765fda60e

View File

@ -450,7 +450,7 @@ class resources_ui
'to_id' => $res_id,
'to_app' => 'resources'
);
} elseif ($accessory_of) {
} elseif ($accessory_of > 0) {
// Pre-set according to parent
$owner = $this->bo->read($accessory_of);
$content['cat_id'] = $owner['cat_id'];