I've force-pushed an update to the branch to address this, but the substantive change is simple to apply by hand. Just run the following:
DROP TRIGGER z_opac_vis_mat_view_tgr ON biblio.record_entry;
CREATE TRIGGER z_opac_vis_mat_view_tgr BEFORE INSERT OR UPDATE ON biblio.record_entry FOR EACH ROW EXECUTE PROCEDURE asset.cache_copy_visibility();
The important part of that is that we need to use a BEFORE trigger rather than an AFTER trigger.
I've force-pushed an update to the branch to address this, but the substantive change is simple to apply by hand. Just run the following:
DROP TRIGGER z_opac_ vis_mat_ view_tgr ON biblio. record_ entry; vis_mat_ view_tgr BEFORE INSERT OR UPDATE ON biblio.record_entry FOR EACH ROW EXECUTE PROCEDURE asset.cache_ copy_visibility ();
CREATE TRIGGER z_opac_
The important part of that is that we need to use a BEFORE trigger rather than an AFTER trigger.