New feature #8757: Individual subquestion relevance

For description and discussion of this PR refer to https://github.com/LimeSurvey/LimeSurvey/pull/177.
(same same but different branch)

mfaber-

Unless things have changed since 2.0, the question relevance is stored at
the question level, and the relevance field for each of the sub-questions
is blank.  Thus, the relevance field for each of the sub-questions could be
used to store the sub-question relevance without messing up the
question-level relevance.  Similarly, the mandatory field dis not used that
the sub-question level, so could be re-purposed to have different
sub-question-level mandatory status.

-Tom


On Tue, Jun 24, 2014 at 3:45 PM, mfaber <notifications@github.com> wrote:

> In application/helpers/common_helper.php:
>
> > @@ -2718,6 +2724,7 @@ function createFieldMap($surveyid, $style='short', $force_refresh=false, $questi
> >          }
> >          if (isset($fieldmap[$fieldname]))
> >          {
> > +            //set question relevance (uses last SQ's relevance field for question relevance)
>
> No, if I remember correctly the problem was that in the DB there was no
> field for question relevance for questions with subquestions (each
> subquestion is one question in the DB). Question relevance was saved in the
> "relevance" field of the last subquestion of the respective question. I had
> to modify the fieldmap so it could hold relevance and SQ relevance at the
> same time. Sorry, hard to explain....please test it, should work fine!
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/LimeSurvey/LimeSurvey/pull/194/files#r14150549>.
>