details: https://code.openbravo.com/erp/devel/pi/rev/dd78fd211350 changeset: 33854:dd78fd211350 user: Stefan Hühner <stefan.huehner <at> openbravo.com> date: Sat Apr 14 15:25:14 2018 +0200 summary: Fixed 38370. Don't add new html mapping for new callouts.
Remove code to auto-insert into ad_model_object_mapping in ad_callout_trg. As those mappings are no longer useful since 17Q1. diffstat: src-db/database/model/triggers/AD_CALLOUT_TRG.xml | 21 +-------------------- 1 files changed, 1 insertions(+), 20 deletions(-) diffs (52 lines): diff -r 8442228af1dd -r dd78fd211350 src-db/database/model/triggers/AD_CALLOUT_TRG.xml --- a/src-db/database/model/triggers/AD_CALLOUT_TRG.xml Thu Apr 19 12:09:11 2018 +0200 +++ b/src-db/database/model/triggers/AD_CALLOUT_TRG.xml Sat Apr 14 15:25:14 2018 +0200 @@ -18,13 +18,12 @@ * under the License. * The Original Code is Openbravo ERP. * The Initial Developer of the Original Code is Openbravo SLU -* All portions are Copyright (C) 2001-2009 Openbravo SLU +* All portions are Copyright (C) 2001-2018 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************/ v_ClassName VARCHAR2(60) ; - v_dir VARCHAR2(200); v_package VARCHAR2(200); v_ID VARCHAR2(32); @@ -67,10 +66,8 @@ INTO v_package FROM AD_MODULE WHERE AD_MODULE_ID = :NEW.AD_MODULE_ID; - v_dir := v_package||'.ad_callouts'; ELSE v_package := 'org.openbravo.erpCommon.ad_callouts'; - v_dir := 'ad_callouts'; END IF; v_ClassName:=AD_MAPPING_FORMAT(TO_CHAR(:new.NAME)) ; @@ -94,22 +91,6 @@ ) ; - INSERT - INTO AD_MODEL_OBJECT_MAPPING - ( - AD_MODEL_OBJECT_MAPPING_ID, AD_CLIENT_ID, AD_ORG_ID, - ISACTIVE, CREATED, CREATEDBY, - UPDATED, UPDATEDBY, AD_MODEL_OBJECT_ID, - MAPPINGNAME, ISDEFAULT - ) - VALUES - ( - get_uuid(), :new.AD_CLIENT_ID, :new.AD_ORG_ID, - 'Y', now(), :new.CREATEDBY, - now(), :new.UPDATEDBY, v_ID, - ('/' || v_dir || '/' || v_ClassName || '.html'), 'Y' - ) - ; END IF; END IF; END AD_CALLOUT_TRG ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits