mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Undo bug - restoring dependencies for trigger formulas
Summary: Undo wasn't restoring trigger formulas dependencies. Test Plan: Python tests Reviewers: alexmojaki Reviewed By: alexmojaki Subscribers: alexmojaki Differential Revision: https://phab.getgrist.com/D3163
This commit is contained in:
@@ -94,6 +94,10 @@ class DocActions(object):
|
||||
# anything that depends on them).
|
||||
self._engine.invalidate_records(table_id, row_ids, col_ids=columns.keys())
|
||||
|
||||
# If the column update changes its trigger-formula conditions, rebuild dependencies.
|
||||
if (table_id == "_grist_Tables_column" and
|
||||
("recalcWhen" in columns or "recalcDeps" in columns)):
|
||||
self._engine.trigger_columns_changed()
|
||||
|
||||
def ReplaceTableData(self, table_id, row_ids, column_values):
|
||||
old_data = self._engine.fetch_table(table_id, formulas=False)
|
||||
|
||||
Reference in New Issue
Block a user