details:   https://code.openbravo.com/erp/devel/pi/rev/55e2c985a8bf
changeset: 16718:55e2c985a8bf
user:      Naiara Martinez <naiara.martinez <at> openbravo.com>
date:      Fri May 18 08:39:14 2012 +0200
summary:   fixed issue 20268 Change filter expression.Add a validation for null 
warehouse

diffstat:

 src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r d5b39cc3eae0 -r 55e2c985a8bf 
src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml
--- a/src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml     Thu May 31 
15:48:36 2012 +0200
+++ b/src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml     Fri May 18 
08:39:14 2012 +0200
@@ -615,7 +615,9 @@
 <!--7A814E72DF9240E280BA6B2AEFF9405A-->  <DEFAULT_EXPRESSION><![CDATA[if 
(OB.getWindowId() && OB.getSession().getAttribute(OB.getWindowId() 
+"|M_WAREHOUSE_ID")) {
   OB.getSession().getAttribute(OB.getWindowId() +"|M_WAREHOUSE_ID");
 } else {
-  OB.getContext().getWarehouse().id;
+  if (OB.getContext().getWarehouse() != null) {
+    OB.getContext().getWarehouse().id;
+  }
 }]]></DEFAULT_EXPRESSION>
 <!--7A814E72DF9240E280BA6B2AEFF9405A-->  
<SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
 <!--7A814E72DF9240E280BA6B2AEFF9405A--></OBUISEL_SELECTOR_FIELD>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to