Case Status Not Saving #426
Labels
Area: Cases
Issues & PRs related to all things regarding the Cases Module
Priority:Important
Issues & PRs that are important; broken functions; errors; there are workarounds
Status: Team Investigating
Labels for issues in which the Core Team are investigating / Intend to Investigate
Type: Bug
Something isn't working
Issue
I’m finding that v8.5.0 (and 8.4.2) don’t save the case status when it’s updated in an edit on screen.
Expected Behavior
The case status should be saved into the DB when it’s selected by the user on screen.
Actual Behavior
The CRM seems to retain the state, but not the status. I see that in the dropdown list editor, status is a hybrid value of state_status (ex: Open_Assigned). This is so that certain statuses are available subordinate to certain corresponding states.
In the DB, the state is stored independently in column state with a value of Open, and the status is stored as the hybrid construction in column status which should show Open_Assigned.
I was able to capture the save operation via the log (set level to Info). While I don’t see errors, I do see a SQL query which contains an offending value:
As you can see, the
`status`=NULL
value is incorrect, and is the obvious cause for the incorrect value to be submitted into the database.Following the advice of user pgr on SuiteCRM's Community Forum, I captured a network request in browser developer tools. I see here that the request from the front end into the back end system has not captured the field value:
Possible Fix
I don't know the codebase well enough to suggest one. I suspect this is in the java scripting which handles the onSave() event.
Steps to Reproduce
Context
My users cannot save case statuses, which makes it impossible for his CRM to trigger "send to billing" workflows.
Environment
The text was updated successfully, but these errors were encountered: