Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033934Retail ModulesStoreServerpublic2016-09-09 08:492016-09-09 10:06
mtaal 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
RR16Q4RR16Q4 
mtaal
No
No
0033934: Editing organization in backoffice causes exception Property organization not defined
When editing organization in the backoffice an exception is thrown [1].

[1]
cdb72c84 2016-09-09 06:13:44,817 [TP-Processor2] ERROR org.openbravo.base.util.CheckException - Property organization does not exist for entity Organization
org.openbravo.base.util.CheckException: Property organization does not exist for entity Organization
        at org.openbravo.base.util.Check.isNotNull(Check.java:72)
        at org.openbravo.base.model.Entity.getProperty(Entity.java:568)
        at org.openbravo.base.model.Entity.getProperty(Entity.java:550)
        at org.openbravo.retail.storeserver.synchronization.eventhandler.InvalidOrganizationChangeEventHandler.onUpdate(InvalidOrganizationChangeEventHandler.java:106)
Install multi-server modules
Restart
Goto organization window, edit and save
No tags attached.
Issue History
2016-09-09 08:49mtaalNew Issue
2016-09-09 08:49mtaalAssigned To => AugustoMauch
2016-09-09 08:49mtaalOBNetwork customer => No
2016-09-09 08:49mtaalTriggers an Emergency Pack => No
2016-09-09 09:11hgbotCheckin
2016-09-09 09:11hgbotNote Added: 0089862
2016-09-09 09:11hgbotStatusnew => resolved
2016-09-09 09:11hgbotResolutionopen => fixed
2016-09-09 09:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/b75c3a6414217ce9f48a8246348ab6b3eba1a4e1 [^]
2016-09-09 10:06mtaalReview Assigned To => mtaal
2016-09-09 10:06mtaalNote Added: 0089866
2016-09-09 10:06mtaalStatusresolved => closed
2016-09-09 10:06mtaalFixed in Version => RR16Q4

Notes
(0089862)
hgbot   
2016-09-09 09:11   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: b75c3a6414217ce9f48a8246348ab6b3eba1a4e1
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Sep 09 09:08:47 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/b75c3a6414217ce9f48a8246348ab6b3eba1a4e1 [^]

Fixes issue 33934: Prevents Exception in InvalidOrganizationChangeEventHandler

The problem was that the InvalidOrganizationChangeEventHandler.onUpdate was trying to access the organization property of the modified entity, but the Organization entity does not have an organization property.

To prevent this error, a check has been added to make sure the entity has an organization property.

---
M src/org/openbravo/retail/storeserver/synchronization/eventhandler/InvalidOrganizationChangeEventHandler.java
---
(0089866)
mtaal   
2016-09-09 10:06   
Reviewed and verified