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