RotherOSS / otobo

OTOBO is one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management. https://otobo.io/
GNU General Public License v3.0
251 stars 72 forks source link

DynamicField Database + ACL Form: value seems empty #2158

Closed StefanAbel-OTOBO closed 5 days ago

StefanAbel-OTOBO commented 1 year ago

When creating a DF Database and hiding it with an ACL (Possible Not > Ticket Form) under some circumstances, it seems empty when displaying it again.

Step 1: Create a DF Database and make it work image

Step 2: Create two ACLs to hide the DF Database in some situations (here depending on the Ticket Type "RfC") image and image

Step 3: Create a ticket with a value in the DF Database image

Step 4: Change the prerequesite so that the DF Database will be hidden according to your ACL (here: change the Type to not "RfC" and save it image and image You see that the DF disappears from the window, but it still has its value (which is the correct behaviour) image

Step 5: Change the prerequesite so that the DF Database will be shown again according to your ACL (here: change the Type to "RfC" and see that in this window, the DF appears again - but without any value. image You don't see a value in the DF, despite the fact that it has one (according to the Ticket History and the Ticket Information). If you would now click on "Submit", it would delete the value, which might cause quite the problems if you still expect your value. image

My expectation would be that if you show the field again, it should display it's stored value.

StefanAbel-OTOBO commented 1 year ago

ov139 10.1.6

svenoe commented 1 year ago

For dynamic fields which do not have a default value, hiding them and then showing them again is supposed to empty them. To me your description sounds like it works as intended. Only with "You see that the DF disappears from the window, but it still has its value (which is the correct behaviour)" I don't understand why you write that "it still has its value"?

StefanAbel-OTOBO commented 1 year ago

but when you show it and it already has a value stored, imho that stored value should be shown in the DF. In case this is intended, I feel okay with closing the bug, but for me it doesn't feel like the correct behaviour.

stefanhaerter commented 3 months ago

Is the discussion on this topic still open or can this issue be closed?

stefanhaerter commented 5 days ago

Nothing new so far, closing the issue.