setArticleTags: always return tags from the db

This commit is contained in:
Andrew Dolgov 2021-02-19 15:50:42 +03:00
parent 921b5ca2ce
commit 4fa8450d38
1 changed files with 2 additions and 1 deletions

View File

@ -248,7 +248,8 @@ class Article extends Handler_Protected {
$this->pdo->commit(); $this->pdo->commit();
print json_encode(["id" => (int)$id, "tags" => $tags]); // get latest tags from the database, original $tags is sometimes JSON-encoded as a hash ({}) - ???
print json_encode(["id" => (int)$id, "tags" => $this->_get_tags($id)]);
} }