details:   https://code.openbravo.com/erp/devel/pi/rev/2bb85f24ae60
changeset: 35596:2bb85f24ae60
user:      Mark Molina <mark.molina <at> doceleguas.com>
date:      Wed Mar 27 14:17:51 2019 -0300
summary:   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.

diffstat:

 web/js/productCharacteristicsProcess.js |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 8ce0c2f34c73 -r 2bb85f24ae60 web/js/productCharacteristicsProcess.js
--- a/web/js/productCharacteristicsProcess.js   Thu Mar 28 13:50:38 2019 +0000
+++ b/web/js/productCharacteristicsProcess.js   Wed Mar 27 14:17:51 2019 -0300
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2013-2016 Openbravo SLU 
+ * All portions are Copyright (C) 2013-2019 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -207,8 +207,8 @@
           },
           columnName: this.characteristicList[i].name,
           inpColumnName: this.characteristicList[i].name,
-          refColumnName: this.characteristicList[i].name,
-          targetEntity: this.characteristicList[i].name,
+          refColumnName: 'name',
+          targetEntity: 'CharacteristicValue',
           treeReferenceId: '95582A51651D415993D0FD3B64C8E861',
           parentCharId: this.characteristicList[i].id,
           dataSourceId: '90034CAE96E847D78FBEF6D38CB1930D',


_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to