commit | 70a3db78b742ceb9555b08f741669a8229ffa39c | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@erpnext.com> | Mon Dec 24 18:07:35 2012 +0530 |
committer | Anand Doshi <anand@erpnext.com> | Mon Dec 24 18:07:35 2012 +0530 |
tree | 35a4c710881bd25c88e032001698f9460f54e3a8 | |
parent | f5d90abe9245010d82c79d9cee7cb26029fc7858 [diff] |
fix in module addition in toolbar
diff --git a/public/js/toolbar.js b/public/js/toolbar.js index e228826..7ade8f8 100644 --- a/public/js/toolbar.js +++ b/public/js/toolbar.js
@@ -65,7 +65,7 @@ for(var i in wn.boot.modules_list) { var m = wn.boot.modules_list[i] - if(m!='Setup' && wn.boot.profile.allow_modules.indexOf(m)!=-1) { + if(m!='Setup' && wn.boot.profile.allow_modules.indexOf(m)!=-1 && wn.modules[m]) { args = { module: m, module_page: wn.modules[m].link,