Skip to content

Commit

Permalink
patch article tags
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon committed Dec 9, 2023
1 parent c4260cb commit b756aa8
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ protected function preprocessSaveData(array $data): array
}
}

$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;
}
Expand Down

0 comments on commit b756aa8

Please sign in to comment.