saltcorn
saltcorn copied to clipboard
Cannot recalculate stored fields if table history enabled
Describe the bug If the history is enabled on a table, stored calculated fields in the table cannot be recalculated.
To Reproduce Steps to reproduce the behavior:
- Create a table
- Add some fields. In this case at least a field "date" of type Date
- Enable history on that table
- Add some entries to the table
- Create a calculated stored field "year" in the table with formula "moment(date).year()" for example
- Try to recalculate stored fields
- See empty column "year"
- Disable table history
- Recalculate fields again
- Now the column "year" contains values