articletext:curl -X PATCH -H "X-Joomla-Token: <token>" -H "Content-Type: application/json" \
-d '{"articletext":"<p>New intro</p><hr id=\"system-readmore\"><p>New full text</p>"}' \
http://<site>/api/index.php/v1/content/articles/1
6.2
The intro text and full text are updated (split at the read more line), the same as when articletext is sent with POST, and a new version is stored.
The response is 200, but the article text is unchanged. Only modified is updated, so no new version is stored either.
PATCH with introtext works.
Joomla 6.2-dev, PHP 8.4, MariaDB 11
For PATCH, ApiController::save() fills every field missing from the request with the stored value, including introtext and fulltext. Content::bind() splits articletext into introtext/fulltext, but parent::bind() then overwrites them with these stored values.
Found while checking #48690. It may be the cause there if the external software sends articletext.
| Labels |
Added:
bug
|
||
| Labels |
Added:
No Code Attached Yet
|
||
PR: #48754