Skip to content
Snippets Groups Projects
Commit c4817ed3 authored by Prasad's avatar Prasad
Browse files

Fixes #1645: getRecordId on Edit or other views

parent a1d9983c
No related branches found
No related tags found
No related merge requests found
...@@ -267,9 +267,14 @@ window.app = (function () { ...@@ -267,9 +267,14 @@ window.app = (function () {
return _USERMETA.menustatus; return _USERMETA.menustatus;
}, },
getRecordId: function () { getRecordId: function () {
var record = jQuery('#recordId') var el = null;
if (record.length) { if (_view == "Edit") {
return record.val(); el = jQuery('#EditView [name="record"]');
} else {
el = jQuery('#recordId');
}
if (el) {
return el.val();
} }
return false; return false;
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment