...
But we don't know how a link is search when we add member to
projects.
We have searched the function called when clicking the "add"
button but can't find it :
This button causes a full submit to the server, and is handled there.
Have a look in class.projectmanager_ui.inc.php, starting around line 194.
Hello !
We found the projectmanager edit function at the line you specified,
but that not what causes the erroneous link : when using step by step
execution, we can see that the link is already added when this function
is reached.
We have found that the etemplate_widget_link::validate() function
register a link if it has been searched but not applied. And that what
is happening : a link is set in the combobox but actually addded when
saving.
So by commenting theses lines the erroneous link is not added.
We tried in vain to find which function in the API process the "add"
button, but it’s a cloud there.
Using whireshark we noticed an associated request / reply with json data
and search the following :
- where in the client dialog is sent the request
- where in the server is processed the request
- where in the client dialog is processed server response.
Well, even using Xdebug and the browser debugger for JS we can’t
identify the “main” functions, that’s too heavy… for just handling a
click on a button.
–
Selso LIBERADO
Conception et Développement logiciel
Email : selso.liberado@ciose.fr mailto:selso.liberado@ciose.fr
Site : www.ciose.fr http://www.ciose.fr
Phone : 33(0)4 77 93 34 32
Address : 1 Rue de la Presse, 42000 SAINT-ÉTIENNE
https://www.facebook.com/ciosystemb
https://www.twitter.com/CIO_SysEmb
https://plus.google.com/100220376990055787299/posts?prsrc=3
https://www.linkedin.com/company/cio-informatique-industrielle