fields hide unhide error logging
This commit is contained in:
parent
eb66d5e504
commit
ac0be241a4
1 changed files with 2 additions and 0 deletions
|
|
@ -131,6 +131,7 @@ hide_field = function(n) {
|
|||
function _hide_field(n,hidden) {
|
||||
var df = get_field(cur_frm.doctype, n, cur_frm.docname);
|
||||
if(df)df.hidden = hidden; refresh_field(n);
|
||||
else console.log("hide_field cannot find field " + n);
|
||||
}
|
||||
if(cur_frm) {
|
||||
if(n.substr) _hide_field(n,1);
|
||||
|
|
@ -142,6 +143,7 @@ unhide_field = function(n) {
|
|||
function _hide_field(n,hidden) {
|
||||
var df = get_field(cur_frm.doctype, n, cur_frm.docname);
|
||||
if(df)df.hidden = hidden; refresh_field(n);
|
||||
else console.log("unhide_field cannot find field " + n);
|
||||
}
|
||||
if(cur_frm) {
|
||||
if(n.substr) _hide_field(n,0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue