formcreator icon indicating copy to clipboard operation
formcreator copied to clipboard

Cannot access ticket generate from a multiple targets form

Open dfper-tjpa opened this issue 4 years ago • 11 comments

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:

  1. With a Admin or other profile that can create a form, create a form with multiple targets (that create more than 1 ticket)
  2. With a self service user, answer this form.
  3. Go the the my requests lists and find this answer
  4. 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 Screenshot_34 Screenshot_35 Screenshot_36 Screenshot_37

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

dfper-tjpa avatar Mar 15 '21 14:03 dfper-tjpa

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.

btry avatar Mar 26 '21 20:03 btry

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.

dfper-tjpa avatar Apr 16 '21 16:04 dfper-tjpa

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

dfper avatar Jun 16 '21 13:06 dfper

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.

btry avatar Jun 16 '21 14:06 btry

Hi

Is your issue solved ?

btry avatar Sep 08 '21 13:09 btry

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

ladenree76000 avatar Dec 15 '21 08:12 ladenree76000

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

image

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

btry avatar Dec 15 '21 09:12 btry

"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

ladenree76000 avatar Dec 15 '21 10:12 ladenree76000

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.

btry avatar Dec 15 '21 10:12 btry

https://github.com/pluginsGLPI/formcreator/commit/c77be76f4db690388337db064a208d42e5713904

btry avatar Dec 15 '21 11:12 btry

Hi Is the problem solved with the latest version ?

btry avatar Jan 29 '22 15:01 btry

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.

btry avatar Nov 24 '22 11:11 btry