diff options
author | John Wiegley <johnw@newartisans.com> | 2017-01-04 12:02:15 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2017-01-04 12:02:15 -0800 |
commit | f27d7776ca8fb29c5a523c859d64f3c570ce8985 (patch) | |
tree | 9ae01f8c316bc3a3e6f9709192f17bf388adc89c /src/chain.cc | |
parent | 0e1c6115b37cc2ddde2d981dfd0e329be626316c (diff) | |
download | fork-ledger-f27d7776ca8fb29c5a523c859d64f3c570ce8985.tar.gz fork-ledger-f27d7776ca8fb29c5a523c859d64f3c570ce8985.tar.bz2 fork-ledger-f27d7776ca8fb29c5a523c859d64f3c570ce8985.zip |
Item sorting should have access to the report scope
Diffstat (limited to 'src/chain.cc')
-rw-r--r-- | src/chain.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chain.cc b/src/chain.cc index 94afc0fa..da56cd1a 100644 --- a/src/chain.cc +++ b/src/chain.cc @@ -186,9 +186,9 @@ post_handler_ptr chain_post_handlers(post_handler_ptr base_handler, // value expression. if (report.HANDLED(sort_)) { if (report.HANDLED(sort_xacts_)) - handler.reset(new sort_xacts(handler, report.HANDLER(sort_).str())); + handler.reset(new sort_xacts(handler, expr_t(report.HANDLER(sort_).str()), report)); else - handler.reset(new sort_posts(handler, report.HANDLER(sort_).str())); + handler.reset(new sort_posts(handler, report.HANDLER(sort_).str(), report)); } // collapse_posts causes xacts with multiple posts to appear as xacts |