File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 183183 var baseUrl = OC . generateUrl ( '/apps/timetracker/ajax/work-intervals' ) ;
184184 $ . ajaxSetup ( {
185185 scriptCharset : "utf-8" ,
186- contentType : "application/json; charset=utf-8"
186+ // contentType: "application/json; charset=utf-8"
187187 } ) ;
188188 $ . getJSON ( baseUrl , function ( data ) {
189189
Original file line number Diff line number Diff line change @@ -299,8 +299,9 @@ public function updateWorkInterval($id) {
299299 $ de ->setTimeZone (new \DateTimeZone ('UTC ' ));
300300 $ wi ->setDuration ($ de ->getTimestamp () - $ dt ->getTimestamp ());
301301 }
302-
302+
303303 $ this ->workIntervalMapper ->update ($ wi );
304+ $ running = $ this ->workIntervalMapper ->findAllRunning ($ this ->userId );
304305
305306 return new JSONResponse (["WorkIntervals " => json_decode (json_encode ($ running ), true )]);
306307 }
You can’t perform that action at this time.
0 commit comments