If a value expression lookup on an account object fails, defer to the current

session object.  Transactions and entries already do this.
This commit is contained in:
John Wiegley 2008-09-18 11:34:22 -04:00
parent bdc180ff9c
commit b9182bccdc

View file

@ -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