resolution refresh

This commit is contained in:
afornerot 2024-02-20 12:00:40 +01:00
parent dae554a45d
commit 94993f9a10
2 changed files with 8 additions and 2 deletions

View File

@ -176,11 +176,15 @@ class ScrumissueController extends AbstractController
$em = $this->getDoctrine()->getManager(); $em = $this->getDoctrine()->getManager();
$id=$request->get('id'); $id=$request->get('id');
$lastupdate=new \DateTime($request->get('lastupdate'));
$scrum=$em->getRepository("App:Scrum")->find($id); $scrum=$em->getRepository("App:Scrum")->find($id);
if(!$scrum) return new JsonResponse(['message' => 'No Scrum'], 403); if(!$scrum) return new JsonResponse(['message' => 'No Scrum'], 403);
/*
$lastupdate=$scrum->getUpdatedate(); $lastupdate=$scrum->getUpdatedate();
$lastupdate->setTimezone(new \DateTimeZone("UTC")); $lastupdate->setTimezone(new \DateTimeZone("UTC"));
*/
$giteaissues=$this->giteaservice->getIssues($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]); $giteaissues=$this->giteaservice->getIssues($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
if(!is_array($giteaissues)) die("Probleme de connexion avec gitea veuillez vous <a href='/logout'>reconnecter</a>"); if(!is_array($giteaissues)) die("Probleme de connexion avec gitea veuillez vous <a href='/logout'>reconnecter</a>");

View File

@ -857,7 +857,8 @@
$("#mycontent").show(); $("#mycontent").show();
lastupdate="{{scrum.updatedate|date("Ymd H:i:s")}}"; lastupdate="{{scrum.updatedate|date("Ymd H:i:s")}}";
console.log(lastupdate);
// Sort columns // Sort columns
$( ".scrumcolumn" ).sortable({ $( ".scrumcolumn" ).sortable({
handle: ".issu-id", handle: ".issu-id",
@ -891,7 +892,8 @@
$(ui.item).data("milestone",newmilestone); $(ui.item).data("milestone",newmilestone);
$(ui.item).data("sprint",newsprint); $(ui.item).data("sprint",newsprint);
if(data) lastupdate=data; if(data) lastupdate=data;
console.log(lastupdate);
refreshinfo(); refreshinfo();
}, },
error: function (request, status, error) { error: function (request, status, error) {