mirror of https://github.com/joomla/joomla-cms.git
patch article tags (#42486)
This commit is contained in:
parent
f97a4c5ea7
commit
56bf784959
|
@ -115,9 +115,11 @@ class ArticlesController extends ApiController
|
|||
}
|
||||
}
|
||||
|
||||
$tags = new TagsHelper();
|
||||
$tags->getTagIds($data['id'], 'com_content.article');
|
||||
$data['tags'] = explode(',', $tags->tags);
|
||||
if (($this->input->getMethod() === 'PATCH') && !(\array_key_exists('tags', $data))) {
|
||||
$tags = new TagsHelper();
|
||||
$tags->getTagIds($data['id'], 'com_content.article');
|
||||
$data['tags'] = explode(',', $tags->tags);
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue