Skip to content

Commit

Permalink
Merge pull request #103 from Leantime/hotfixes-2.0.7
Browse files Browse the repository at this point in the history
notice bug on showAll
  • Loading branch information
marcelfolaron authored Feb 18, 2020
2 parents 3944569 + c056d8c commit ec68a77
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/domain/tickets/controllers/class.showAll.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,20 +137,17 @@ public function run()
$tpl->assign("onTheClock", $ticketRepo->isClocked($_SESSION["userdata"]["id"]));





//If sprint is empty that means that we don't have a single sprint available. Don't perform search for sprints.

if($searchCriteria["sprint"] != "") {
$searchCriteriaSprint = array("currentProject" => $_SESSION["currentProject"], "users" => "", "status" => "", "searchType"=> "", "searchterm" => "", "sprint" => $searchCriteria["sprint"], "milestone" => '');
$tpl->assign('allSprintTickets', $ticketRepo->getAllBySearchCriteria($searchCriteriaSprint));
$tpl->assign("currentSprint", $searchCriteriaSprint["sprint"]);
}else{
$tpl->assign('allSprintTickets', []);
$tpl->assign("currentSprint", "");
}

$tpl->assign("currentSprint", $searchCriteriaSprint["sprint"]);

$searchCriteria["sprint"] = 'none';
$tpl->assign('allBacklogTickets', $ticketRepo->getAllBySearchCriteria($searchCriteria));

Expand Down

0 comments on commit ec68a77

Please sign in to comment.