Deferred notes were being processed too late
This commit is contained in:
parent
89e0472b50
commit
1e18536a8c
1 changed files with 8 additions and 8 deletions
16
src/xact.cc
16
src/xact.cc
|
|
@ -779,6 +779,14 @@ void auto_xact_t::extend_xact(xact_base_t& xact, parse_context_t& context)
|
|||
journal->register_account(account->fullname(), new_post,
|
||||
journal->master);
|
||||
|
||||
if (deferred_notes) {
|
||||
foreach (deferred_tag_data_t& data, *deferred_notes) {
|
||||
if (! data.apply_to_post || data.apply_to_post == post)
|
||||
new_post->parse_tags(data.tag_data.c_str(), bound_scope,
|
||||
data.overwrite_existing);
|
||||
}
|
||||
}
|
||||
|
||||
extend_post(*new_post, *journal);
|
||||
|
||||
xact.add_post(new_post);
|
||||
|
|
@ -786,14 +794,6 @@ void auto_xact_t::extend_xact(xact_base_t& xact, parse_context_t& context)
|
|||
|
||||
if (new_post->must_balance())
|
||||
needs_further_verification = true;
|
||||
|
||||
if (deferred_notes) {
|
||||
foreach (deferred_tag_data_t& data, *deferred_notes) {
|
||||
if (data.apply_to_post == post)
|
||||
new_post->parse_tags(data.tag_data.c_str(), bound_scope,
|
||||
data.overwrite_existing);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue