Opened 8 years ago
Closed 8 years ago
#40801 closed defect (bug) (duplicate)
Category not updating on bulk edit post
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Quick/Bulk Edit | Keywords: | has-patch dev-feedback |
Focuses: | Cc: |
Description
when we do bulk edit post and checked multiple categories. It will updated categories in bulk edited post. but when we unchecked some category then will not remove that unchecked category from post.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
The issue seems to stem from the code base running an
array_merge
for every post being updated that combines it's pre-update categories with any new categories selected in the bulk edit panel. This creates a situation in which the bulk edit can only ever add categories to posts and will never remove a category.By preventing this
array_merge
the bulk edit panel treats every post as a blank canvas and adds only the categories selected during the edit process.Visually this falls in line with user expectations as all the categories are unchecked by default when a user goes to bulk edit posts.