You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if a visible dynamic field of type attachment gets hidden via ACL in CustomerTicketMessage, the form can not be submitted anymore. If the field is hidden from the start, there is no problem. Clicking on the submit button does nothing, no message, no redirect.
It seems the cause of this behavior is the HTML class "Validate_DnDUpload" which is not removed when the field gets hidden. As a workaround i added the following lines to "var/httpd/htdocs/js/Core.AJAX.js" around line 470. That seems to solve the issue, but changes a OTOBO core file.
I also attached exports of my test ACL and dynamic fields.
...
elseif(Field.hasClass("Validate_DependingRequiredOR")){Field.removeClass("Validate_DependingRequiredOR");Field.addClass("Validate_DependingRequired_IfVisibleOR");}elseif(Field.hasClass("Validate_DnDUpload")){Field.removeClass("Validate_DnDUpload");Field.addClass("Validate_DnDUpload_IfVisible");}}// field has to be shown againelseif(Field.closest('div.Row').hasClass("oooACLHidden")){Field.closest('div.Row').show();// if it was hidden via autoselect before
...
elseif(Field.hasClass("Validate_DependingRequired_IfVisibleOR")){Field.removeClass("Validate_DependingRequired_IfVisibleOR");Field.addClass("Validate_DependingRequiredOR");}elseif(Field.hasClass("Validate_DnDUpload_IfVisible")){Field.removeClass("Validate_DnDUpload_IfVisible");Field.addClass("Validate_DnDUpload");}
...
Hello OTOBO Team,
if a visible dynamic field of type attachment gets hidden via ACL in CustomerTicketMessage, the form can not be submitted anymore. If the field is hidden from the start, there is no problem. Clicking on the submit button does nothing, no message, no redirect.
It seems the cause of this behavior is the HTML class "Validate_DnDUpload" which is not removed when the field gets hidden. As a workaround i added the following lines to "var/httpd/htdocs/js/Core.AJAX.js" around line 470. That seems to solve the issue, but changes a OTOBO core file.
I also attached exports of my test ACL and dynamic fields.
Best regards
Attachment-Example.zip
The text was updated successfully, but these errors were encountered: