saltcorn icon indicating copy to clipboard operation
saltcorn copied to clipboard

Cannot recalculate stored fields if table history enabled

Open jljabben opened this issue 2 years ago • 0 comments

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:

  1. Create a table
  2. Add some fields. In this case at least a field "date" of type Date
  3. Enable history on that table
  4. Add some entries to the table
  5. Create a calculated stored field "year" in the table with formula "moment(date).year()" for example
  6. Try to recalculate stored fields
  7. See empty column "year"
  8. Disable table history
  9. Recalculate fields again
  10. Now the column "year" contains values

jljabben avatar May 25 '22 10:05 jljabben