Closed papoteur-mga closed 6 years ago
Check if the corresponding task rule has a "responsible" value that is null or is a login in the actor table. The "assigned_to" field of the task receives this value.
Yes, good catch, JJJ. For some rules, the field contains the string "NULL" instead of being NULL :( Thus, some check to do with the creation of the database, I think.
This was coming from an old skeleton. Solved by setting all rules with NULL instead of 'NULL' Thanks
I enter an event "Filed" in a TM matter. I get: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
phpip
.task
, CONSTRAINTfk_assigned_to
FOREIGN KEY (assigned_to
) REFERENCESactor
(login
) ON DELETE SET NULL ON UPDATE CASCADE), query was: INSERT INTOevent
(matter_ID
,code
,event_date
,detail
,alt_matter_ID
) VALUES (?, ?, ?, ?, ?) This is not the case with PAT matters.