Explorar el Código

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 hace 3 años
committed by GitHub
padre
commit
18108eef65
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      frappe/public/js/frappe/form/controls/int.js

+ 2
- 0
frappe/public/js/frappe/form/controls/int.js Ver fichero

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

Cargando…
Cancelar
Guardar