[minor fix] fixed the module access issue
This commit is contained in:
parent
007b8fb6b9
commit
b33347d0f9
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ frappe.ModuleEditor = Class.extend({
|
|||
var module = $(this).attr('data-module');
|
||||
if($(this).prop("checked")) {
|
||||
// remove from block_modules
|
||||
me.frm.doc.block_modules = $.map(me.frm.doc.block_modules || [], function(d) { d.module != module });
|
||||
me.frm.doc.block_modules = $.map(me.frm.doc.block_modules || [], function(d) { if(d.module != module){ return d } });
|
||||
} else {
|
||||
me.frm.add_child("block_modules", {"module": module});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue