details:   /erp/devel/pi/rev/f0e7e3fce561
changeset: 9096:f0e7e3fce561
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Mon Dec 13 13:00:09 2010 +0100
summary:   Fixed issue 15353. The process will check if the module is in 
development before running.

diffstat:

 src/org/openbravo/erpCommon/ad_actionButton/ExportReferenceData.java |  7 
+++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r 6014c98ee274 -r f0e7e3fce561 
src/org/openbravo/erpCommon/ad_actionButton/ExportReferenceData.java
--- a/src/org/openbravo/erpCommon/ad_actionButton/ExportReferenceData.java      
Mon Dec 13 11:12:04 2010 +0100
+++ b/src/org/openbravo/erpCommon/ad_actionButton/ExportReferenceData.java      
Mon Dec 13 13:00:09 2010 +0100
@@ -83,6 +83,13 @@
     OBError myError = null;
     try {
       DataSet myDataset = (DataSet) OBDal.getInstance().get(DataSet.class, 
strKey);
+      if (!myDataset.getModule().isInDevelopment()) {
+        myError = new OBError();
+        myError.setType("Error");
+        myError.setTitle(Utility.messageBD(this, "20532", vars.getLanguage()));
+        myError.setMessage(Utility.messageBD(this, "20532", 
vars.getLanguage()));
+        return myError;
+      }
       ExportReferenceDataData[] data = 
ExportReferenceDataData.selectDataset(this, strKey);
       if (data == null || data.length == 0)
         return Utility.translateError(this, vars, vars.getLanguage(), 
"ProcessRunError");

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to