29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-20 11:05:08 +00:00

Fix for issue 42229 - webservices content patch tags lost (#42233)

* Fix for issue 42229 - webservices content patch tags lost

* cs
This commit is contained in:
Martin Carl Kopp 2023-10-31 10:52:34 +01:00 committed by GitHub
parent 3b13b2433b
commit 8ec5c35142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@
namespace Joomla\Component\Content\Api\Controller;
use Joomla\CMS\Filter\InputFilter;
use Joomla\CMS\Helper\TagsHelper;
use Joomla\CMS\MVC\Controller\ApiController;
use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;
@ -114,6 +115,10 @@ class ArticlesController extends ApiController
}
}
$tags = new TagsHelper();
$tags->getTagIds($data['id'], 'com_content.article');
$data['tags'] = explode(',', $tags->tags);
return $data;
}
}