You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2019/08/04 15:42:28 UTC
[whimsy] branch master updated: if there is a matching pending item,
update it
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 <ru...@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