Suppose you create a Survey, attach it to an event (or more), but never enter any questions at all. Then, when you view the event, it shows the survey even though it doesn't have any questions leave just a "Submit" button in place. When it determines whether to show the survey it should also check that there are more than 0 questions in it.
Submitted pull request https://github.com/mozilla/airmozilla/pull/128
Commits pushed to master at https://github.com/mozilla/airmozilla https://github.com/mozilla/airmozilla/commit/cb2d715c6592938bd207c5e1395c579209619219 Fixes bug 1097058 - Prevent survey activation without questions https://github.com/mozilla/airmozilla/commit/7429de43b09314affd13a7a35fe1fa313ffe42c5 Merge pull request #128 from bugzPDX/1097058_bug Fixes bug 1097058 - Prevent survey activation without questions