diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-18 11:34:22 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-18 11:34:22 -0400 |
commit | b9182bccdc4e28defaba48cfe1a5dae86caae075 (patch) | |
tree | d7fe666ad9a63245e3322aa1a5487240693ede9c /src/account.cc | |
parent | bdc180ff9cf4a0b953882117584f72d772fa362f (diff) | |
download | fork-ledger-b9182bccdc4e28defaba48cfe1a5dae86caae075.tar.gz fork-ledger-b9182bccdc4e28defaba48cfe1a5dae86caae075.tar.bz2 fork-ledger-b9182bccdc4e28defaba48cfe1a5dae86caae075.zip |
If a value expression lookup on an account object fails, defer to the current
session object. Transactions and entries already do this.
Diffstat (limited to 'src/account.cc')
-rw-r--r-- | src/account.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/account.cc b/src/account.cc index 5f131fe1..f628817e 100644 --- a/src/account.cc +++ b/src/account.cc @@ -189,7 +189,9 @@ expr_t::ptr_op_t account_t::lookup(const string& name) return WRAP_FUNCTOR(get_wrapper<&get_total>); break; } - return expr_t::ptr_op_t(); + + assert(owner == session_t::current); + return owner->current_report->lookup(name); } bool account_t::valid() const |