fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-12-19 05:03 pm

[dw-free] Call the right method when looking up all the user's answers. This was my fault entirely!

[commit: http://hg.dwscoalition.org/dw-free/rev/9e9b8e4dbd41]

Call the right method when looking up all the user's answers. This was my
fault entirely!

Patch by [personal profile] fu.

Files modified:
  • htdocs/tools/endpoints/poll.bml
--------------------------------------------------------------------------------
diff -r 8e130e1f49c2 -r 9e9b8e4dbd41 htdocs/tools/endpoints/poll.bml
--- a/htdocs/tools/endpoints/poll.bml	Tue Dec 20 00:51:59 2011 +0800
+++ b/htdocs/tools/endpoints/poll.bml	Tue Dec 20 01:03:56 2011 +0800
@@ -58,7 +58,7 @@
     }  elsif ($action eq 'get_user_answers') {
         return $err->( "No userid" ) unless $userid;
 
-        $ret->{answer_html} = $poll->user_answer_as_html( $userid );
+        $ret->{answer_html} = $poll->user_answers_as_html( $userid );
     } else {
         return $err->("Invalid action $action");
     }
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org