Browse Source

Host environment does not have string.startsWith().

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

Loading…
Cancel
Save