MDL-29378 Fix regression in the Survey/COLLES P+A module
authorDavid Mudrák <david@moodle.com>
Wed, 4 Sep 2013 21:42:35 +0000 (23:42 +0200)
committerDavid Mudrák <david@moodle.com>
Wed, 4 Sep 2013 22:08:42 +0000 (00:08 +0200)
commitde9a88cdaf254c7be29122c5a7a38883d7e1fbf8
treec752782114770be95820613558000423ec48e6a0
parentee788142f200c292a3ad95d8dedf61429e4eb761
MDL-29378 Fix regression in the Survey/COLLES P+A module

This basically reverts the commit 5196df589b0fbcead4a0943c8e7b227f8a98c897 that
I believe was a result of misunderstanding of how question type field is
(ab)used in the Survey module. As it took significant time to get familiar with
the overall logic of questions and their processing in the module, I left my
findings in added inline comments. The point is that it is $question->type that
matters. Types of questions listed as subquestions in the multi field is
irrelevant in that case (and all have it set to 1 IIRC).

This patch re-enables the "COLLES (Preferred and Actual)" survey type that did
not work at all due to regression.
mod/survey/lib.php