Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into feature/use-enter-for-new-work-item
  • Loading branch information
Hawiak authored Jul 26, 2022
commit 51f2ed6cb3fb72ca694fd54938da7260a1155aec
2 changes: 2 additions & 0 deletions lib/Controller/AjaxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,8 @@ public function addWorkInterval() {

$this->workIntervalMapper->insert($wi);

$running = $this->workIntervalMapper->findAllRunning($this->userId);

return new JSONResponse(["WorkIntervals" => json_decode(json_encode($running), true)]);
}

Expand Down
1 change: 1 addition & 0 deletions lib/Db/ProjectMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function searchByName($user, string $name) {
$sql = 'SELECT tp.* FROM `*PREFIX*timetracker_project` tp LEFT JOIN `*PREFIX*timetracker_user_to_project` up ON up.project_id = tp.id WHERE up.`user_uid` = ? AND upper(tp.`name`) LIKE ? ORDER BY tp.`name`';

return $this->findEntities($sql, [$user,"%" . $name ."%"]);

}

/**
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.