-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
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.
...
else if ( Field.hasClass("Validate_DependingRequiredOR") ) {
Field.removeClass("Validate_DependingRequiredOR");
Field.addClass("Validate_DependingRequired_IfVisibleOR");
}
else if ( Field.hasClass("Validate_DnDUpload") ) {
Field.removeClass("Validate_DnDUpload");
Field.addClass("Validate_DnDUpload_IfVisible");
}
}
// field has to be shown again
else if ( Field.closest('div.Row').hasClass("oooACLHidden") ) {
Field.closest('div.Row').show();
// if it was hidden via autoselect before
...
else if ( Field.hasClass("Validate_DependingRequired_IfVisibleOR") ) {
Field.removeClass("Validate_DependingRequired_IfVisibleOR");
Field.addClass("Validate_DependingRequiredOR");
}
else if ( Field.hasClass("Validate_DnDUpload_IfVisible") ) {
Field.removeClass("Validate_DnDUpload_IfVisible");
Field.addClass("Validate_DnDUpload");
}
...Best regards
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels