TaxonHistoryItem changes are not always undoable #158

Open
jonkerz opened this Issue May 28, 2016 · 1 comment

Comments

Projects
None yet
1 participant
Member

jonkerz commented May 28, 2016

Any edit that reaches this line: https://github.com/calacademy-research/antcat/blob/69e4f57686ff2cf0aecad2823fb6d7b35e2a2cdc/app/models/taxa/save_taxon.rb#L85 will not be completely undoable.

#update_all (Rails method) doesn't run callbacks which means TaxonHistoryItems aren't saved in PaperTrail whenever they are changed, which means these changes are not reverted when the change is undone via the undo button.

jonkerz added the bug label May 28, 2016

Member

jonkerz commented Dec 20, 2016

The same thing is true for synonyms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment