Skip to content

Fix Organisation update functionality #1629

@joseAyudarte91

Description

@joseAyudarte91

There are three main issues:

  • We are not handling properly the result of updating the organisation entity in the DB, so we pass wrong reference to the function to associate tags with the target organisation to be updated.
  • We always try to update the 'logo' property (storing 'logo_id'), but some times we do not want to update it, so we would end-up deleting the previous one and not adding any other one replacing it. So we need to update the logo only when it is needed and just delete the previous one if we explicitly get the property as null or we get a new logo to be used.
  • In the front-end side, we get a -1 value for type property when the user selects Other option in the UI, but we need to enforce we get Other string value instead, so the front-end will need to fix this issue, since we are already enforcing this in other endpoints as well to avoid corrupt data.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions