Menu

#2260 Error when linked object creation fails

Unassigned
not-a-bug
None
Behavior won't be changed
User Interface
Medium
3.1.1-1
defect
2024-09-20
2024-06-14
No

I have my own extension, which overrides DoCheckToWrite method of WorkOrder to prevent set end_date less than start_date.
In console:
- User wants to create a new ticket, and tries to create WorkOrder (with wrong end_date) via UserRequest creation form - it adds WorkOrder to list correctly (DoCheckToWrite is not called in this moment)
- When user tries to save ticker, DoCheckToWrite of WorkOrder fails and user gets error message, but ticket is already broken and cannot be saved.

Discussion

  • Vincent @ Combodo

    Hi Kamil,
    If you want the creation of the Ticket to fail if a sub-object such as a WorkOrder fails, then you must perform the Check of the WorkOrder dates also within the Ticket::CheckToWrite

     
  • Vincent @ Combodo

    • status: new --> not-a-bug
    • assigned_to: Vincent @ Combodo
    • Milestone: 3.1.2 --> Unassigned
    • Resolution: --> Behavior won't be changed
     

Log in to post a comment.