whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: if there is a matching pending item, update it
Date Sun, 04 Aug 2019 15:42:28 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new dab6de7  if there is a matching pending item, update it
dab6de7 is described below

commit dab6de721d31b90ff32574c48cf2b033494d69d5
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun Aug 4 11:41:48 2019 -0400

    if there is a matching pending item, update it
---
 www/board/agenda/views/actions/status.json.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/board/agenda/views/actions/status.json.rb b/www/board/agenda/views/actions/status.json.rb
index eab63c5..6ab9f72 100644
--- a/www/board/agenda/views/actions/status.json.rb
+++ b/www/board/agenda/views/actions/status.json.rb
@@ -27,7 +27,7 @@ Pending.update(env.user, @agenda) do |pending|
   pending['status'] << update if not match
 
   # change the status in the update
-  update[:status] =
+  (match || update)[:status] =
     @status.strip.gsub(/\s+/, ' ').
       gsub(/(.{1,62})(\s+|\Z)/, '\\1' + "\n".ljust(15)).strip
 


Mime
View raw message