Forum

Ticket #2399 - Erro...
 
Notifications
Retirer tout

Ticket #2399 - Error Creating project inside ticket creation

5 Posts
2 Utilisateurs
0 Reactions
2,753 Vu
(@antonio-grr)
Posts: 84
Active Member
Début du sujet
 
[#3873]

Hi.
I'm trying this sequence :
I go to ticket page and choose "Add ticket".
In this page, instead of choosing an existing project I try to create a new one opening the dynamic dialog, and add a project.
When I save the project the application goes back to ticket creation form but with a javascript error :
TypeError: _180 is undefined
http://gundam/projeqtor/external/dojo/projeqtorDojo.js?version=V6.0.1
Line 2 col 49069

...0,corner:_181,pos:{x:{"L":x,"R":x+_17d,"M":x+(_17d>>1)}[_180.charAt(1)],y:{"T":y...
--------------------------------------------------------^
Thank you for your attention.


 
Posté : 28 Nov PM 17:1111
(@babynus)
Posts: 14952
Membre Admin
 

Wery strange use case, but issue confirmed.

Recorded as Ticket #2399


 
Posté : 28 Nov PM 18:1111
(@antonio-grr)
Posts: 84
Active Member
Début du sujet
 

I can now add some more extra information that could be useful to fix the issue.
I fixed ( temporarely) it modifying the function push in projeqtorDojo.js
adding cases "right" and "left" that were not handled. At the moment my version is as follows :
switch(pos){
case "above-centered":
push("TM","BM");
break;
case "below-centered":
push("BM","TM");
break;
case "after-centered":
ltr=!ltr;
case "before-centered":
push(ltr?"ML":"MR",ltr?"MR":"ML");
break;
case "right":
case "after":
ltr=!ltr;
case "left":
case "before":
push(ltr?"TL":"TR",ltr?"TR":"TL");
push(ltr?"BL":"BR",ltr?"BR":"BL");
break;
case "below-alt":ltr=!ltr;
case "below":push(ltr?"BL":"BR",ltr?"TL":"TR");push(ltr?"BR":"BL",ltr?"TR":"TL");break;
case "above-alt":ltr=!ltr;
case "above":push(ltr?"TL":"TR",ltr?"BL":"BR");push(ltr?"TR":"TL",ltr?"BR":"BL");break;
default:push(pos.aroundCorner,pos.corner);
}

In this way I can avoid the javascript error; but the new project is not accept during current ticket creation,as it is not in combo list.


 
Posté : 29 Nov AM 10:1111
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Solution can not be in projeqtorDojo.js : this is a fiel auto-generated from Dojo framework, so may change on each dojo upgrade.

In fact, it is the possibility to create a project from a ticket that should not be allowed : the project must exist before the ticket, and you should have defined corresponding allocations to the project in order to give rights to add tickets on the project. You get this strange use case, I think, because you create tickets with admin profile.
In patch V6.0.2 this possibility has been removed to avoid this issue and improve consistency of the process.
Same way, hability to create a status from ticket has been removed as staut smust exist before being used, and moreover should havr been included in workflow in order ot be used.


 
Posté : 29 Nov PM 13:1111
(@antonio-grr)
Posts: 84
Active Member
Début du sujet
 

Anyway, I think that projeqtorDojo.js bug has to be reported to Dojo group.The possibility to create a Project on-the-fly was useful for me to handle request from customers outside from an existing project; any hint for this ?


 
Posté : 29 Nov PM 14:1111
Share:
Retour en haut