gestion suppression label statut
This commit is contained in:
parent
ab2b1e6d3f
commit
0989e4762c
|
@ -179,6 +179,8 @@ class ScrumController extends AbstractController
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
$data=$em->getRepository($this->entity)->find($id);
|
$data=$em->getRepository($this->entity)->find($id);
|
||||||
if(!$data) return $this->redirectToRoute($this->route);
|
if(!$data) return $this->redirectToRoute($this->route);
|
||||||
|
$firstcolumn=$em->getRepository('App:Scrumcolumn')->findOneBy(["scrum"=>$data], ['rowid' => 'ASC']);
|
||||||
|
if(!$firstcolumn) return $this->redirectToRoute($this->route);
|
||||||
|
|
||||||
$forcereload=false;
|
$forcereload=false;
|
||||||
if($request->get("forcereload")) $forcereload=$request->get("forcereload");
|
if($request->get("forcereload")) $forcereload=$request->get("forcereload");
|
||||||
|
@ -200,22 +202,22 @@ class ScrumController extends AbstractController
|
||||||
if($viewclosed=="false"&&$issue->getGiteastate()=="closed") continue;
|
if($viewclosed=="false"&&$issue->getGiteastate()=="closed") continue;
|
||||||
|
|
||||||
// Ids
|
// Ids
|
||||||
$idcol=$issue->getScrumcolumn()->getId();
|
$idcol=($issue->getScrumcolumn()?$issue->getScrumcolumn()->getId():$firstcolumn->getId());
|
||||||
$idjal=($issue->getGiteamilestone()?$issue->getGiteamilestone():-100);
|
$idjal=($issue->getGiteamilestone()?$issue->getGiteamilestone():-100);
|
||||||
$idspr=($issue->getScrumsprint()?$issue->getScrumsprint()->getId():-100);
|
$idspr=($issue->getScrumsprint()?$issue->getScrumsprint()->getId():-100);
|
||||||
|
|
||||||
// Roworders
|
// Roworders
|
||||||
$rowcol=$issue->getScrumcolumn()->getRowid();
|
$rowcol=($issue->getScrumcolumn()?$issue->getScrumcolumn()->getRowid():$firstcolumn->getId());
|
||||||
$rowjal=($issue->getGiteaMilestonename()?$issue->getGiteaMilestonename():-100);
|
$rowjal=($issue->getGiteaMilestonename()?$issue->getGiteaMilestonename():-100);
|
||||||
$rowspr=($issue->getScrumsprint()?$issue->getScrumsprint()->getRowid():-100);
|
$rowspr=($issue->getScrumsprint()?$issue->getScrumsprint()->getRowid():-100);
|
||||||
|
|
||||||
// Names
|
// Names
|
||||||
$nmcol=$issue->getScrumcolumn()->getName();
|
$nmcol=($issue->getScrumcolumn()?$issue->getScrumcolumn()->getName():$firstcolumn->getId());
|
||||||
$nmjal=($issue->getGiteaMilestonename()?$issue->getGiteaMilestonename():"Aucun");
|
$nmjal=($issue->getGiteaMilestonename()?$issue->getGiteaMilestonename():"Aucun");
|
||||||
$nmspr=($issue->getScrumsprint()?$issue->getScrumsprint()->getName():"Aucun");
|
$nmspr=($issue->getScrumsprint()?$issue->getScrumsprint()->getName():"Aucun");
|
||||||
|
|
||||||
// Idgiteas
|
// Idgiteas
|
||||||
$gicol=$issue->getScrumcolumn()->getGiteaid();
|
$gicol=($issue->getScrumcolumn()?$issue->getScrumcolumn()->getGiteaid():$firstcolumn->getId());
|
||||||
$gijal=($issue->getGiteaMilestone()?$issue->getGiteaMilestone():-100);
|
$gijal=($issue->getGiteaMilestone()?$issue->getGiteaMilestone():-100);
|
||||||
|
|
||||||
// Liste des colonnes/jalons/sprint avec des issues
|
// Liste des colonnes/jalons/sprint avec des issues
|
||||||
|
@ -601,6 +603,8 @@ class ScrumController extends AbstractController
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
$data=$em->getRepository($this->entity)->find($id);
|
$data=$em->getRepository($this->entity)->find($id);
|
||||||
if(!$data) return $this->redirectToRoute($this->route);
|
if(!$data) return $this->redirectToRoute($this->route);
|
||||||
|
$firstcolumn=$em->getRepository('App:Scrumcolumn')->findOneBy(["scrum"=>$data], ['rowid' => 'ASC']);
|
||||||
|
if(!$firstcolumn) return $this->redirectToRoute($this->route);
|
||||||
|
|
||||||
$em->getRepository("App:Scrum")->getGitea($data,$giteaassignees,$giteacolumns,$giteamilestones,$giteateams,$giteaprioritys,$giteatypes,$gitealabels);
|
$em->getRepository("App:Scrum")->getGitea($data,$giteaassignees,$giteacolumns,$giteamilestones,$giteateams,$giteaprioritys,$giteatypes,$gitealabels);
|
||||||
|
|
||||||
|
@ -623,17 +627,17 @@ class ScrumController extends AbstractController
|
||||||
if($viewclosed=="false"&&$issue->getGiteastate()=="closed") continue;
|
if($viewclosed=="false"&&$issue->getGiteastate()=="closed") continue;
|
||||||
|
|
||||||
// Ids
|
// Ids
|
||||||
$idcol=$issue->getScrumcolumn()->getId();
|
$idcol=($issue->getScrumcolumn()?$issue->getScrumcolumn()->getId():$firstcolumn->getId());
|
||||||
$idjal=($issue->getGiteamilestone()?$issue->getGiteamilestone():-100);
|
$idjal=($issue->getGiteamilestone()?$issue->getGiteamilestone():-100);
|
||||||
$idspr=($issue->getScrumsprint()?$issue->getScrumsprint()->getId():-100);
|
$idspr=($issue->getScrumsprint()?$issue->getScrumsprint()->getId():-100);
|
||||||
|
|
||||||
// Roworders
|
// Roworders
|
||||||
$rowcol=$issue->getScrumcolumn()->getRowid();
|
$rowcol=($issue->getScrumcolumn()?$issue->getScrumcolumn()->getRowid():$firstcolumn->getId());
|
||||||
$rowjal=($issue->getGiteaMilestonename()?$issue->getGiteaMilestonename():-100);
|
$rowjal=($issue->getGiteaMilestonename()?$issue->getGiteaMilestonename():-100);
|
||||||
$rowspr=($issue->getScrumsprint()?$issue->getScrumsprint()->getRowid():-100);
|
$rowspr=($issue->getScrumsprint()?$issue->getScrumsprint()->getRowid():-100);
|
||||||
|
|
||||||
// Names
|
// Names
|
||||||
$nmcol=$issue->getScrumcolumn()->getName();
|
$nmcol=($issue->getScrumcolumn()?$issue->getScrumcolumn()->getName():$firstcolumn->getId());
|
||||||
$nmjal=($issue->getGiteaMilestonename()?$issue->getGiteaMilestonename():"Aucun");
|
$nmjal=($issue->getGiteaMilestonename()?$issue->getGiteaMilestonename():"Aucun");
|
||||||
$nmspr=($issue->getScrumsprint()?$issue->getScrumsprint()->getName():"Aucun");
|
$nmspr=($issue->getScrumsprint()?$issue->getScrumsprint()->getName():"Aucun");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue