details: /erp/devel/pi/rev/6a7a2295a014
changeset: 7404:6a7a2295a014
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Wed May 19 16:54:52 2010 +0200
summary: fixed bug 13315: fixed message when installing from obx
diffstat:
src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diffs (21 lines):
diff -r 7719a5d32346 -r 6a7a2295a014
src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java
--- a/src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java Wed May
19 17:24:09 2010 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java Wed May
19 16:54:52 2010 +0200
@@ -709,6 +709,17 @@
// calculate minimum required version of each extra module (installs &
updates)
minVersions = calcMinVersions(im);
+ if (islocal) {
+ // set the selected module for obx installation
+ if (installOrig != null && installOrig.length > 0) {
+ module = installOrig[0];
+ } else {
+ Module[] modsToUpdate = im.getModulesToUpdate();
+ if (modsToUpdate != null && modsToUpdate.length > 0) {
+ module = modsToUpdate[0];
+ }
+ }
+ }
// check commercial modules and show error page if not allowed to
install
if (!checkCommercialModules(im, minVersions, response, vars, module)) {
return;
------------------------------------------------------------------------------
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits