Comment 8 for bug 1387722

Revision history for this message
Rogan Hamby (rogan-hamby) wrote :

I've pushed a working branch for this to: user/rogan/lp1387722_set_leader_delete_status

Following Mike's advice I did it as a database trigger on the biblio.record_entry row. I've tested it under current master and it works cleanly.

On insert it sets it to 'n', on update and delete flag is false (including undelete) it sets to 'c' and on update with delete set to true it sets it to 'd'.