summaryrefslogtreecommitdiff
path: root/derive.cc
diff options
context:
space:
mode:
Diffstat (limited to 'derive.cc')
-rw-r--r--derive.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/derive.cc b/derive.cc
index 837353cc..0e6df28a 100644
--- a/derive.cc
+++ b/derive.cc
@@ -167,8 +167,9 @@ entry_t * derive_new_entry(journal_t& journal,
}
done:
- if (! run_hooks(journal.entry_finalize_hooks, *added) ||
- ! added->finalize())
+ if (! run_hooks(journal.entry_finalize_hooks, *added, false) ||
+ ! added->finalize() ||
+ ! run_hooks(journal.entry_finalize_hooks, *added, true))
throw new error("Failed to finalize derived entry (check commodities)");
return added.release();