Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0050042Openbravo ERP00. Application dictionarypublic2022-08-23 19:042022-09-16 13:47
axelmercado 
Triage Platform Base 
highmajoralways
closedfixed 
5
PR22Q1 
PR22Q1PR22Q4 
Google Chrome
User Interface Application
No
0050042: Bug after adding ad_image column in organization
We have added a column of the type image in Organization and after adding it does not allow us to make changes in Organization
We get the following error:
The save action failed. Property organization does not exist for entity Organization
1-Create a new column of type image in the ad_org table
2-implement it in the application dictionary.
3-Attempt to complete a new record in Organization which will cause the error when saving.
Partner Practics has created a fix based on the following issue that is related to the problem:https://issues.openbravo.com/view.php?id=33934. [^]

He has adapted it to the new version. Attached is the patch.
No tags attached.
diff RemoveImagesEventHandler.diff (1,107) 2022-08-23 19:04
https://issues.openbravo.com/file_download.php?file_id=17429&type=bug
Issue History
2022-08-23 19:04axelmercadoNew Issue
2022-08-23 19:04axelmercadoAssigned To => Triage Platform Base
2022-08-23 19:04axelmercadoFile Added: RemoveImagesEventHandler.diff
2022-08-23 19:04axelmercadoWeb browser => Apple Safari
2022-08-23 19:04axelmercadoModules => User Interface Application
2022-08-23 19:04axelmercadoTriggers an Emergency Pack => No
2022-08-23 19:04axelmercadoWeb browserApple Safari => Google Chrome
2022-08-23 19:30PracticsIssue Monitored: Practics
2022-09-13 11:55hgbotNote Added: 0141047
2022-09-16 13:47hgbotResolutionopen => fixed
2022-09-16 13:47hgbotStatusnew => closed
2022-09-16 13:47hgbotFixed in Version => PR22Q4
2022-09-16 13:47hgbotNote Added: 0141189
2022-09-16 13:47hgbotNote Added: 0141190

Notes
(0141047)
hgbot   
2022-09-13 11:55   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/709 [^]
(0141189)
hgbot   
2022-09-16 13:47   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: ce7830686bf949626d42f01eaa766241c0fab086
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 16-09-2022 09:06:13
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/ce7830686bf949626d42f01eaa766241c0fab086 [^]

Fixes ISSUE-50042: image columns can be used in ad_org table

The problem was that an event handler was taking for granted that all the tables it worked with were going to
include a property named "organization". This is true for all entities except for the Organization entity itself.

Now the event handler checks if the property exists before trying to retrieve it

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/event/RemoveImagesEventHandler.java
---
(0141190)
hgbot   
2022-09-16 13:47   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/709 [^]