소스 검색

fix(desk): Use Int control for Long Int (#16572)

Type `Long Int` doesn't have a JS control, we can use the Int's instead. Prior to this, forms of DocTypes with Long Int fields would just not render :trollface: 

<img width="1440" alt="Screenshot 2022-04-11 at 3 36 40 PM" src="https://user-images.githubusercontent.com/36654812/162716347-c924775c-50ee-4e8c-8627-21c178f4e221.png">
version-14
gavin 3 년 전
committed by GitHub
부모
커밋
18108eef65
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      frappe/public/js/frappe/form/controls/int.js

+ 2
- 0
frappe/public/js/frappe/form/controls/int.js 파일 보기

@@ -41,3 +41,5 @@ frappe.ui.form.ControlInt = class ControlInt extends frappe.ui.form.ControlData
return cint(this.eval_expression(value), null);
}
};

frappe.ui.form.ControlLongInt = frappe.ui.form.ControlInt;

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