Infos:
- Used Zammad version: 6.3.1
- Used Zammad installation type: package
- Operating system: Rocky Linux 9.4 (Red Hat)
- Browser + version: All Browsers
I have added an external data source field ‘machine’ to the ticket object.
It is configured as shown and required for new tickets.
Expected behavior:
- To see correct validation error message when the machine field is empty.
Actual behavior:
- Correct message is displayed for users with admin and agent roles.
- For users with agent role only, the validation message is: “ERROR ID [Some short Guid]: Please contact your administrator.”.
Steps to reproduce the behavior:
- Create a new ticket, keep the field empty and try to create it.
Found the following prints in the log file:
E, [2025-01-22T13:06:10.227196#829-3403640] ERROR -- : Missing required value for field 'machine'! (Exceptions::ApplicationModel)
app/models/concerns/checks_core_workflow.rb:69:in `block in check_mandatory'
app/models/concerns/checks_core_workflow.rb:63:in `each_key'
app/models/concerns/checks_core_workflow.rb:63:in `check_mandatory'
app/models/concerns/checks_core_workflow.rb:41:in `validate_workflows'
app/controllers/tickets_controller.rb:165:in `block in create'
app/models/transaction.rb:17:in `block in execute'
app/models/transaction.rb:14:in `execute'
app/models/transaction.rb:26:in `execute'
app/controllers/tickets_controller.rb:85:in `create'
app/controllers/application_controller/has_download.rb:17:in `block (4 levels) in <module:HasDownload>'
app/controllers/application_controller/has_download.rb:16:in `block (3 levels) in <module:HasDownload>'
app/controllers/application_controller/has_download.rb:15:in `block (2 levels) in <module:HasDownload>'
app/controllers/application_controller/handles_transitions.rb:16:in `handle_transaction'
E, [2025-01-22T13:06:10.229613#829-3403640] ERROR -- : Error ID y0M8vvfe: Missing required value for field 'machine'!
I, [2025-01-22T13:06:10.229870#829-3403640] INFO -- : Completed 422 Unprocessable Entity in 74ms (Views: 0.1ms | ActiveRecord: 12.5ms | Allocations: 40915)
Any idea how to fix that?
Please let me know if you need further information.