Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
c3414cd9d1
@ -23,6 +23,7 @@ cur_frm.cscript.onload = function(doc, dt, dn) {
|
||||
method:"get_approver_list",
|
||||
callback: function(r) {
|
||||
cur_frm.set_df_property("leave_approver", "options", r.message);
|
||||
get_leave_balance(cur_frm.doc);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ def page_name(title):
|
||||
|
||||
def update_page_name(doc, title):
|
||||
"""set page_name and check if it is unique"""
|
||||
webnotes.conn.sql(doc, "page_name", title)
|
||||
webnotes.conn.set(doc, "page_name", page_name(title))
|
||||
|
||||
res = webnotes.conn.sql("""\
|
||||
select count(*) from `tab%s`
|
||||
|
Loading…
Reference in New Issue
Block a user