details: /erp/devel/pi/rev/4e1ecf48b4ae
changeset: 9409:4e1ecf48b4ae
user: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
date: Mon Dec 27 13:40:44 2010 +0100
summary: [ModelObject] Fixed issue on ReferencedLink.
diffstat:
src/org/openbravo/erpCommon/utility/ReferencedLink.java | 20 +----------------
1 files changed, 1 insertions(+), 19 deletions(-)
diffs (37 lines):
diff -r 6fc15da5ad7e -r 4e1ecf48b4ae
src/org/openbravo/erpCommon/utility/ReferencedLink.java
--- a/src/org/openbravo/erpCommon/utility/ReferencedLink.java Mon Dec 27
13:35:37 2010 +0100
+++ b/src/org/openbravo/erpCommon/utility/ReferencedLink.java Mon Dec 27
13:40:44 2010 +0100
@@ -38,8 +38,6 @@
import org.openbravo.dal.service.OBDal;
import org.openbravo.dal.service.OBQuery;
import org.openbravo.data.Sqlc;
-import org.openbravo.model.ad.domain.ModelImplementation;
-import org.openbravo.model.ad.domain.ModelImplementationMapping;
import org.openbravo.model.ad.system.Language;
import org.openbravo.model.ad.ui.Tab;
import org.openbravo.model.ad.ui.WindowTrl;
@@ -127,23 +125,7 @@
json.put("tabTitle", tabTitle);
// find the model object mapping
- String mappingName = null;
- for (ModelImplementation modelImpl : tab.getADModelImplementationList())
{
- for (ModelImplementationMapping mapping :
modelImpl.getADModelImplementationMappingList()) {
- if (mapping.getMappingName() != null
- && mapping.getMappingName().toLowerCase().contains("edition")) {
- // found it
- mappingName = mapping.getMappingName();
- break;
- }
- }
- if (mappingName != null) {
- break;
- }
- }
- if (mappingName != null) {
- json.put("mappingName", mappingName);
- }
+ json.put("mappingName", Utility.getTabURL(tabId, "E", false));
} catch (Exception e) {
try {
json.put("error", e.getMessage());
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits