details: https://code.openbravo.com/erp/devel/pi/rev/5216f55ce73a changeset: 30440:5216f55ce73a user: Carlos Aristu <carlos.aristu <at> openbravo.com> date: Mon Oct 17 09:10:17 2016 +0200 summary: related to issue 33565: retrieve the window id from the standard window
For child tabs this.view.windowId is undefined. For this reason, we retrieve the windowId using the standardWindow property of the view. Thus, we ensure that the window id is always retrieved properly diffstat: modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r b468094df0d0 -r 5216f55ce73a modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js --- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js Fri Oct 14 16:02:59 2016 +0200 +++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js Mon Oct 17 09:10:17 2016 +0200 @@ -351,7 +351,7 @@ }, isLinkedItemSectionDisabled: function () { - return 'Y' === OB.PropertyStore.get('OBUIAPP_DisableLinkedItemsSection', this.view.windowId); + return 'Y' === OB.PropertyStore.get('OBUIAPP_DisableLinkedItemsSection', this.view.standardWindow.windowId); }, enableAttachmentsSection: function (enable) { ------------------------------------------------------------------------------ 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