The archive and delete functions both disassociate materials via course.service's disassociateMaterials function, which called resetItemFields. Insteaed, disassociateMaterials now utilizes the detach_material OpenSRF call, so the fix will apply to both scenarios
I've pushed a branch fixing this here: https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ khuckins/ lp1940105- archive- course- should- detach_ material
The archive and delete functions both disassociate materials via course.service's disassociateMat erials function, which called resetItemFields. Insteaed, disassociateMat erials now utilizes the detach_material OpenSRF call, so the fix will apply to both scenarios