This issue has been created
There is 1 update.
 
 
Blog Application / cid:jira-generated-image-avatar-27fdede1-77e1-4a04-a43f-c4857805490d BLOG-273 Open

Renaming or migrating a blog category moves it to the end of the categories of its blog posts

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-82e42c15-edfc-44c2-9690-53a8049ea253 Vincent Massol created this issue on 14/Oct/26 12:12
 
Summary: Renaming or migrating a blog category moves it to the end of the categories of its blog posts
Issue Type: cid:jira-generated-image-avatar-27fdede1-77e1-4a04-a43f-c4857805490d Bug
Affects Versions: 9.15.14
Assignee: Unassigned
Created: 14/Oct/26 12:12
Priority: cid:jira-generated-image-static-minor-b7c24fc0-34ab-4cf7-9370-58e3be403aa1 Minor
Reporter: Vincent Massol
Description:

When a blog category is renamed, or migrated from the legacy Blog space to Blog.Categories, the blog posts that are in this category are updated, but the category is moved to the end of the categories list of each post instead of keeping its position.

Steps to reproduce

  1. Create a blog post in the categories News, Other and Personal (in this order)
  2. Rename the News category (through a page rename / move) to Announcements
  3. Edit the blog post

Expected: the categories are Announcements, Other, Personal
Actual: the categories are Other, Personal, Announcements

The order of the categories is user data (it is the order in which they are displayed for the post).

Cause

The old value is removed from the list and the new one is appended, instead of being replaced in place:

The current behaviour is pinned by CategoryRenameListenerTest#renamingACategoryUpdatesTheBlogPostsInIt and CategoryLocationMigrationTest#migrateMovesTheLegacyCategoriesToTheCategoriesSpace (BLOG-269).

 
 

1 update

 
cid:jira-generated-image-avatar-82e42c15-edfc-44c2-9690-53a8049ea253 Changes by Vincent Massol on 14/Oct/26 12:12
 
Assignee: Vincent Massol