From 2e3d4249117bc11d8c1fe887dad0b4ce18a0b43d Mon Sep 17 00:00:00 2001 From: patrick Date: Sun, 8 Sep 2019 08:11:01 +1000 Subject: [PATCH] bugfix --- Apiv1.php | 2 +- js/bts_office.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Apiv1.php b/Apiv1.php index 5ed89c5..60596c6 100644 --- a/Apiv1.php +++ b/Apiv1.php @@ -59,7 +59,7 @@ class Apiv1{ ); $sql = "SELECT * FROM $this->job_table WHERE start>='%s' and start <='%s' order by start ASC ,staff ASC"; - $sql = "SELECT * FROM $this->job_table order by start ASC ,staff ASC"; + //$sql = "SELECT * FROM $this->job_table order by start ASC ,staff ASC"; $query = $wpdb->prepare ($sql, array($start, $finish)); $response['sql'] = $query; $jobs = $wpdb->get_results($query); diff --git a/js/bts_office.js b/js/bts_office.js index a46e464..c1e6cc1 100644 --- a/js/bts_office.js +++ b/js/bts_office.js @@ -1427,7 +1427,7 @@ }); $('div.weekly div.weekname.prev').click(function(){ - if (!confirm ('copy entire week to next week? ')) + if (!confirm ('copy entire week to next week?')) return; var jobs = []; $('div.week1 >div').each(function(i,e){