소스 검색

Merge pull request #3589 from saurabh6790/filter_fixes

[hot][fix] set field type
version-14
Makarand Bauskar 8 년 전
committed by GitHub
부모
커밋
0ba69722b2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      frappe/public/js/frappe/ui/filters/filters.js

+ 2
- 2
frappe/public/js/frappe/ui/filters/filters.js 파일 보기

@@ -216,7 +216,7 @@ frappe.ui.Filter = Class.extend({
: __("use % as wildcard"))+'</div>');
} else {
//if condition selected after refresh
me.set_field(me.field.df.parent, me.field.df.fieldname, me.field.df.fieldtype, condition);
me.set_field(me.field.df.parent, me.field.df.fieldname, null, condition);
}
});

@@ -345,7 +345,7 @@ frappe.ui.Filter = Class.extend({
} else if(['Text','Small Text','Text Editor','Code','Tag','Comments',
'Dynamic Link','Read Only','Assign'].indexOf(df.fieldtype)!=-1) {
df.fieldtype = 'Data';
} else if(df.fieldtype=='Link' && this.wrapper.find('.condition').val()!="=") {
} else if(df.fieldtype=='Link' && ['=', '!='].indexOf(this.wrapper.find('.condition').val())==-1) {
df.fieldtype = 'Data';
}
if(df.fieldtype==="Data" && (df.options || "").toLowerCase()==="email") {


불러오는 중...
취소
저장