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 183
183
var baseUrl = OC . generateUrl ( '/apps/timetracker/ajax/work-intervals' ) ;
184
184
$ . ajaxSetup ( {
185
185
scriptCharset : "utf-8" ,
186
- contentType : "application/json; charset=utf-8"
186
+ // contentType: "application/json; charset=utf-8"
187
187
} ) ;
188
188
$ . getJSON ( baseUrl , function ( data ) {
189
189
Original file line number Diff line number Diff line change @@ -299,8 +299,9 @@ public function updateWorkInterval($id) {
299
299
$ de ->setTimeZone (new \DateTimeZone ('UTC ' ));
300
300
$ wi ->setDuration ($ de ->getTimestamp () - $ dt ->getTimestamp ());
301
301
}
302
-
302
+
303
303
$ this ->workIntervalMapper ->update ($ wi );
304
+ $ running = $ this ->workIntervalMapper ->findAllRunning ($ this ->userId );
304
305
305
306
return new JSONResponse (["WorkIntervals " => json_decode (json_encode ($ running ), true )]);
306
307
}
You can’t perform that action at this time.
0 commit comments