modilabs/formhub — pull request #1127 by larryweya (2013-05-22 07:26:25+00:00)
Title: submission_count can either be a number or a function

depending on where it is called from. Within the template, we use a subquery to set the submission_count while normal cases use it as a function - fixes #1122