formcreator
formcreator copied to clipboard
Cannot access ticket generate from a multiple targets form
Describe the bug When I answer a multiple targets form, it creates more than 1 ticket and send they to each group. But when I open the form and try to access the ticket, i recive a messege that this item not found
To Reproduce Steps to reproduce the behavior:
- With a Admin or other profile that can create a form, create a form with multiple targets (that create more than 1 ticket)
- With a self service user, answer this form.
- Go the the my requests lists and find this answer
- Get the tickets list from this answer and try to open the tickets to get the error
Expected behavior See the ticket generated from the form answered
Screenshots

Desktop (please complete the following information):
- OS: [Windows 10, Windows 7]
- Browser [Firefox E.S.R 68.11.0 Chrome 84.0 Edge 89.0.774.45]
GLPI Version 9.5.1, 9.5.3 and 9.5.4 Formcreator Version 2.11.0 and 2.11.2
Hi
I think you may be impacted by the bug fixed in the following commit: b7cad38c229f87c8cadf3a5ddddedc0d15e6dd70
But you say the bug ocurs with Formcreator 2.11.2, which contains the above fix. Please confirm again that you're impacted with Formcreator 2.11.2. If yes, use a testing environment to check if the bug still occurs with the latest revision of the branch support/2.11.0.
If the bug still occurs with the latest revision, please describe the entity tree if your instance, where are the form, the user and the generated tickets in this tree. Maybe is there an entity configuration problem.
Sorry for delay...
Yes, i am using now 2.11.2 version. About entity tree, we using 2 entities just for publish a public form and doesn't show this for any user from the "main" entity.
Hi,
I'm going to check out the latest development version 2.12 as #2255 looks to be the same case and seems to have been resolved
Hi
You're right, this issue is very likely a duplicate of #2255.
To test a bugfix I recommend you to pick only the diff file representing the patch and apply it. It is less reliable to test a fix by using a different release.
Hi
Is your issue solved ?
HI,
glpi9.5.5 + formcreator 2.12.2
one form with 2 target tickets : only 1 line inserted in glpi_plugin_formcreator_issues table ( f_xxx) => unable to see tickets with simplified interface
when I run automatic action "SyncIssue" 2 lines are insterted into in glpi_plugin_formcreator_issues table (t_xxx1 & t_xxx2) then i can see tickets with simplified interface
I hope this helps
hi
one form with 2 target tickets : only 1 line inserted in glpi_plugin_formcreator_issues table ( f_xxx) => unable to see tickets with simplified interface
If the requester clicks the assistance request, he will see a page with his own answers, and tabs on the left. One tab shows the list of generated tickets, and he can click them

Having only one new row in the issues table is the expected behavior. the assistance requests are not tickets.
when I run automatic action "SyncIssue" 2 lines are insterted into in glpi_plugin_formcreator_issues table (t_xxx1 & t_xxx2) then i can see tickets with simplified interface
This is a known bug. There is a fix for this.
@ladenree76000 If you want to test the fixes, I recommend you use the latest revision of the branch support/2.12.0
"If the requester clicks the assistance request, he will see a page with his own answers, and tabs on the left. One tab shows the list of generated tickets, and he can click them"
as the requester click on generated ticket list he gets the messsage "you don't have rights" (upgraded to 2.12.3 same behaviour)
i'm looking for the fix
I don't remember well as it was a complicated bugfix. I did a fix in the sync issues SQL query that I recommend you to use (this required to run the sync after that, to fix possible inconsistencies in the issues table). There was also, if I remember well, a fix in the file inc/issue.class.php Changing some logic in displayExtended() or displaySimplified() methods. Both are included in 2.12.3. Do a blame on the file on github and you should locate the fix easily.
https://github.com/pluginsGLPI/formcreator/commit/c77be76f4db690388337db064a208d42e5713904
Hi Is the problem solved with the latest version ?
Hi
I think this problem should be solved with Formcretor 2.13.3 (release in progress). As this version is very different, if the problem persists, open a new ticket. I close this one because it is obsolete.