Przeglądaj źródła

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 lat temu
committed by GitHub
rodzic
commit
18108eef65
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 0 usunięć
  1. +2
    -0
      frappe/public/js/frappe/form/controls/int.js

+ 2
- 0
frappe/public/js/frappe/form/controls/int.js Wyświetl plik

@@ -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;

Ładowanie…
Anuluj
Zapisz