Browse Source

Host environment does not have string.startsWith().

Neal Wilson 6 years ago
parent
commit
17e9dec25f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      config/Windows/batchdetailsnew.xml

+ 1
- 1
config/Windows/batchdetailsnew.xml View File

@@ -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…
Cancel
Save