summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZack Hobson2009-08-23 19:24:54 -0700
committerZack Hobson2009-08-23 19:24:54 -0700
commitc2bdbfa4df2d4dcb4914605105cdabaedc77da2b (patch)
tree554c476001cb2840dccce0695c013424795968d7 /lib
parent09513e8446030d508fbf22daf926ec0d9647ea5d (diff)
downloadhcl-c2bdbfa4df2d4dcb4914605105cdabaedc77da2b.tar.bz2
Revert "Permit append to empty notes, closes #26."
This was supposed to fix #26 but ended up causing #31 in the process. Reverted! This reverts commit b0738c3c74ccfba4af0258d4f26370564127cfdc.
Diffstat (limited to 'lib')
-rw-r--r--lib/hcl/day_entry.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/hcl/day_entry.rb b/lib/hcl/day_entry.rb
index db72748..bfc6dbf 100644
--- a/lib/hcl/day_entry.rb
+++ b/lib/hcl/day_entry.rb
@@ -27,14 +27,9 @@ module HCl
def append_note new_notes
# If I don't include hours it gets reset.
# This doens't appear to be the case for task and project.
- if notes.nil?
- notes = new_notes
- else
- notes << " #{new_notes}"
- end
DayEntry.post("daily/update/#{id}", <<-EOD)
<request>
- <notes>#{notes}</notes>
+ <notes>#{notes << " #{new_notes}"}</notes>
<hours>#{hours}</hours>
</request>
EOD