瀏覽代碼

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
沒有發現已知的金鑰在資料庫的簽署中 GPG Key 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;

Loading…
取消
儲存