fix stat clos
This commit is contained in:
parent
88ffe47f6e
commit
4c9b0a1db2
|
@ -633,7 +633,7 @@ class ScrumController extends AbstractController
|
||||||
$showfilters = $em->getRepository("App:User")->getUserpreference($this->getUser(),"showfilters",$id);
|
$showfilters = $em->getRepository("App:User")->getUserpreference($this->getUser(),"showfilters",$id);
|
||||||
|
|
||||||
$tbestim=$this->getEstim($scrum);
|
$tbestim=$this->getEstim($scrum);
|
||||||
|
|
||||||
return $this->render($this->render.'stat.html.twig', [
|
return $this->render($this->render.'stat.html.twig', [
|
||||||
'useheader' => true,
|
'useheader' => true,
|
||||||
'usesidebar' => false,
|
'usesidebar' => false,
|
||||||
|
@ -759,6 +759,18 @@ class ScrumController extends AbstractController
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!array_key_exists("clos",$tbestim[$idjal]["columns"])) {
|
||||||
|
$tbestim[$idjal]["columns"]["clos"] = [
|
||||||
|
"rowcol" => 1000,
|
||||||
|
"idcol" => "clos",
|
||||||
|
"gicol" => "clos",
|
||||||
|
"nmcol" => "Clos",
|
||||||
|
"color" => "000000",
|
||||||
|
"nbjrs" => 0,
|
||||||
|
"nbiss" => 0,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
if(!array_key_exists($idcol,$tbestim[$idjal]["columns"])) {
|
if(!array_key_exists($idcol,$tbestim[$idjal]["columns"])) {
|
||||||
$tbestim[$idjal]["columns"][$idcol] = [
|
$tbestim[$idjal]["columns"][$idcol] = [
|
||||||
"rowcol" => $rowcol,
|
"rowcol" => $rowcol,
|
||||||
|
@ -771,6 +783,18 @@ class ScrumController extends AbstractController
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!array_key_exists("clos",$tbestim[$idjal]["sprints"][$idspr]["columns"])) {
|
||||||
|
$tbestim[$idjal]["sprints"][$idspr]["columns"]["clos"] = [
|
||||||
|
"rowcol" => 10000,
|
||||||
|
"idcol" => "clos",
|
||||||
|
"gicol" => "clos",
|
||||||
|
"nmcol" => "Clos",
|
||||||
|
"color" => "000000",
|
||||||
|
"nbjrs" => 0,
|
||||||
|
"nbiss" => 0,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
if(!array_key_exists($idcol,$tbestim[$idjal]["sprints"][$idspr]["columns"])) {
|
if(!array_key_exists($idcol,$tbestim[$idjal]["sprints"][$idspr]["columns"])) {
|
||||||
$tbestim[$idjal]["sprints"][$idspr]["columns"][$idcol] = [
|
$tbestim[$idjal]["sprints"][$idspr]["columns"][$idcol] = [
|
||||||
"rowcol" => $rowcol,
|
"rowcol" => $rowcol,
|
||||||
|
@ -782,8 +806,10 @@ class ScrumController extends AbstractController
|
||||||
"nbiss" => 0,
|
"nbiss" => 0,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
// On cumule les estimations
|
// On cumule les estimations
|
||||||
|
if($issue->getGiteastate()=="closed") $idcol="clos";
|
||||||
|
|
||||||
$tbestim[$idjal]["nbjrs"]+=$issue->getWeight();
|
$tbestim[$idjal]["nbjrs"]+=$issue->getWeight();
|
||||||
$tbestim[$idjal]["columns"][$idcol]["nbjrs"]+=$issue->getWeight();
|
$tbestim[$idjal]["columns"][$idcol]["nbjrs"]+=$issue->getWeight();
|
||||||
$tbestim[$idjal]["sprints"][$idspr]["nbjrs"]+=$issue->getWeight();
|
$tbestim[$idjal]["sprints"][$idspr]["nbjrs"]+=$issue->getWeight();
|
||||||
|
|
Loading…
Reference in New Issue