Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0039167Openbravo ERP02. Master data managementpublic2018-08-22 13:312019-03-28 19:29
aaroncalero 
markmm82 
normalminoralways
closedfixed 
5
 
3.0PR19Q2 
Sandrahuguet
Core
No
0039167: Characteristics labels in Update Characteristics popup can be clicked and raise a server error
The labels of the product characteristics that appear on the Update Characteristics popup (in the Product Window) can be clicked as if they were a link to another window/entity.
When the name of a characteristic doesn't match the name of an entity, however, a server error is raised and a javascript error is raised on the browser.
Login in backend: https://livebuilds.openbravo.com/erp_pi_pgsql [^]
Go to the Product Characteristic window and create a record:
*Name: Color
*Go to the Value tab and define two values:
**Red
**Blue
Select the Red value, click on the Add Products button, select the "Cerveza Ale 0,5L" product and click on Done.
Go to the Product window and find the "Cerveza Ale 0,5L" record.
Click on the Update Characteristics button.
Click on the "Color" label.

Verify that the following error appears in the tomcat log:
2018-08-22 13:22:34,150 [ajp-bio-127.0.0.1-8009-exec-80] ERROR org.openbravo.erpCommon.utility.ReferencedLink - Error captured:
org.openbravo.base.util.CheckException: Mapping name: Color not found in runtime model
No tags attached.
Issue History
2018-08-22 13:31aaroncaleroNew Issue
2018-08-22 13:31aaroncaleroAssigned To => Triage Finance
2018-08-22 13:31aaroncaleroModules => Core
2018-08-22 13:31aaroncaleroTriggers an Emergency Pack => No
2018-09-11 13:52avicenteResolution time => 1538344800
2018-09-12 10:57SandrahuguetResolution time1538344800 =>
2019-01-11 10:18SandrahuguetAssigned ToTriage Finance => AtulOpenbravo
2019-01-11 11:00SandrahuguetAssigned ToAtulOpenbravo => markmm82
2019-02-25 03:20markmm82Statusnew => scheduled
2019-03-27 18:19markmm82Note Added: 0110708
2019-03-27 18:20markmm82Note Edited: 0110708bug_revision_view_page.php?bugnote_id=0110708#r18548
2019-03-28 15:12hgbotCheckin
2019-03-28 15:12hgbotNote Added: 0110899
2019-03-28 15:12hgbotStatusscheduled => resolved
2019-03-28 15:12hgbotResolutionopen => fixed
2019-03-28 15:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2bb85f24ae60921c2291e461d6d88699de94de14 [^]
2019-03-28 15:13SandrahuguetReview Assigned To => Sandrahuguet
2019-03-28 15:13SandrahuguetNote Added: 0110900
2019-03-28 15:13SandrahuguetStatusresolved => closed
2019-03-28 15:13SandrahuguetFixed in Version => 3.0PR19Q2
2019-03-28 19:29hudsonbotCheckin
2019-03-28 19:29hudsonbotNote Added: 0110905

Notes
(0110708)
markmm82   
2019-03-27 18:19   
(edited on: 2019-03-27 18:20)
Test Plan:
As F&B Group Admin
  Go to the Product Characteristic window and create a record:
    Name: Color
  Go to the Value tab and define two values:
    Red
    Blue
  Select the Red value, click on the Add Products button, select the "Cerveza
  Ale 0,5L" product and click on Done.
  Go to the Product window and find the "Cerveza Ale 0,5L" record.
  Click on the Update Characteristics button.
  Click on the "Color" label.
    Notice you navigate to the Characteristic value with the selected value in the popup, for instance Red.
  Notice there aren't any warning in the browser console neither in eclipse.

(0110899)
hgbot   
2019-03-28 15:12   
Repository: erp/devel/pi
Changeset: 2bb85f24ae60921c2291e461d6d88699de94de14
Author: Mark Molina <mark.molina <at> doceleguas.com>
Date: Wed Mar 27 14:17:51 2019 -0300
URL: http://code.openbravo.com/erp/devel/pi/rev/2bb85f24ae60921c2291e461d6d88699de94de14 [^]

Fixes issue 39167: Characteristics labels hyperlink in Update Characteristics
popup can be clicked and raise a server error

Due to an incorrect definition of the target entity and reference column the navigation
from a Characteristic value in the Update Characteristic popup it was unable to redirect
to the right window and an exception was thrown in the backend.
This solution define 'CharacteristicValue' as the target entity and 'name' as referenced column.

---
M web/js/productCharacteristicsProcess.js
---
(0110900)
Sandrahuguet   
2019-03-28 15:13   
Code review + testing OK
(0110905)
hudsonbot   
2019-03-28 19:29   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/faf4157296e1 [^]
Maturity status: Test