summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xact.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 2357de8e..556a0776 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -126,7 +126,7 @@ namespace {
}
value_t get_note(xact_t& xact) {
- return string_value(xact.note ? *xact.note : ":NOTELESS:");
+ return string_value(xact.note ? *xact.note : empty_string);
}
value_t get_account(call_scope_t& scope)
@@ -212,6 +212,11 @@ expr_t::ptr_op_t xact_t::lookup(const string& name)
}
break;
+ case 'n':
+ if (name == "note")
+ return WRAP_FUNCTOR(get_wrapper<&get_note>);
+ break;
+
case 'p':
if (name == "pending")
return WRAP_FUNCTOR(get_wrapper<&get_pending>);