From c2bdbfa4df2d4dcb4914605105cdabaedc77da2b Mon Sep 17 00:00:00 2001 From: Zack Hobson Date: Sun, 23 Aug 2009 19:24:54 -0700 Subject: 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. --- lib/hcl/day_entry.rb | 7 +------ 1 file changed, 1 insertion(+), 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) - #{notes} + #{notes << " #{new_notes}"} #{hours} EOD -- cgit v1.2.3