details: /erp/devel/pi/rev/eb96c8dd63e2
changeset: 10804:eb96c8dd63e2
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Fri Feb 18 18:09:27 2011 +0100
summary: Force getting session attributes in getContextInfo for display logic
This makes it work in case isEditingGrid and isShowingForm are false
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-field.js.ftl
| 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 2c10d1d0ee1a -r eb96c8dd63e2
modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-field.js.ftl
---
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-field.js.ftl
Fri Feb 18 18:06:06 2011 +0100
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-field.js.ftl
Fri Feb 18 18:09:27 2011 +0100
@@ -45,7 +45,7 @@
</#if>
<#if fieldDefinition.showIf != "">
showIf: function(item, value, form, values) {
- var context = form.view.getContextInfo(false, true),
+ var context = form.view.getContextInfo(false, true, true),
currentValues = values || form.view.getCurrentValues(), i;
// Fixing null values to match 2.50 behaviour '' == null
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits