From cee275c4359913918eef87f2534f3e32eb5b48f7 Mon Sep 17 00:00:00 2001 From: patrick Date: Fri, 13 Sep 2019 16:04:49 +1000 Subject: [PATCH] bugfix load_timesheet --- js/bts_timesheet.js | 2 ++ ts.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/bts_timesheet.js b/js/bts_timesheet.js index 0607f86..26811de 100644 --- a/js/bts_timesheet.js +++ b/js/bts_timesheet.js @@ -1140,6 +1140,8 @@ if(typeof bts().staff == 'undefined' || typeof bts().client == 'undefined' || bts().earnings_rate == 'undefined' ){ setTimeout(do_load_time_sheet,500); + }else{ + do_load_time_sheet(); } function do_load_time_sheet(){ diff --git a/ts.php b/ts.php index 3e8958e..262eb3c 100644 --- a/ts.php +++ b/ts.php @@ -634,7 +634,7 @@ class AcareOffice{ // Usage: `wp sync_users --mininterval=123 public function sync_user_cli($args = array(), $assoc_args = array()){ $arguments = wp_parse_args( $assoc_args, array( - 'mininterval' => 600, + 'mininterval' => 86400, 'employeeonly' => false, 'clientsonly' => false, ) );