diff --git a/layouts/v7/resources/application.js b/layouts/v7/resources/application.js index a7ace97698f33bd66d43256f9eacfcb3219b0d2c..aecbc43f3b4edc7883a1a33b42185575dbeac7ab 100644 --- a/layouts/v7/resources/application.js +++ b/layouts/v7/resources/application.js @@ -267,9 +267,14 @@ window.app = (function () { return _USERMETA.menustatus; }, getRecordId: function () { - var record = jQuery('#recordId') - if (record.length) { - return record.val(); + var el = null; + if (_view == "Edit") { + el = jQuery('#EditView [name="record"]'); + } else { + el = jQuery('#recordId'); + } + if (el) { + return el.val(); } return false; },