gravitee-io / issues

Gravitee.io - API Platform - Issues
64 stars 26 forks source link

Background image deleted by default when updating category #9752

Closed exalate-issue-sync[bot] closed 4 days ago

exalate-issue-sync[bot] commented 3 months ago

A user is able to add a background image to a category and also change it. However, on the next update, the background image is deleted automatically.

Steps to reproduce in Console:

  1. Create a category
  2. Add a background picture
  3. Save changes
  4. Change the description, name, page or hidden enabled
  5. Save changes

Affects all versions: 4.0.x → Master


The technical problem: The object UpdateCategory has a background, but not a background_url. So when the user updates a Category that already has a background_url and the background image has not been changed, background is null and no attribute for the background url exists. The background image is then set as null in the DB.

stale[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.