Explorar el Código

Host environment does not have string.startsWith().

Neal Wilson hace 7 años
padre
commit
17e9dec25f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      config/Windows/batchdetailsnew.xml

+ 1
- 1
config/Windows/batchdetailsnew.xml Ver fichero

@@ -581,7 +581,7 @@
581 581
                     return;
582 582
                 }
583 583
                 if(Number(search.text)) {
584
-                    if(search.text.startsWith('00')) {
584
+                    if(search.text[0] == '0' && search.text[1] == '0') {
585 585
                         var query = new QSqlQuery();
586 586
                         query.prepare("SELECT machine, time FROM scheduled_roasts WHERE id = :id");
587 587
                         query.bind(":id", Number(search.text));

Loading…
Cancelar
Guardar