obiba / onyx

Web-based application that manages participant baseline interviews at assessment centres or clinics.
http://www.obiba.org/pages/products/onyx
GNU General Public License v3.0
6 stars 13 forks source link

ONYX-1718: Using $ variables in labels or instructions has different results depending on where it is used. #1534

Closed ymarcon closed 6 years ago

ymarcon commented 10 years ago

Jira issue originally created by user @dwainelson:

I would like to add a variable to the Questionnaire description but it does not accept the variable. The log shows a null pointer exception. It would be more optimal to add it here before a language is selected.

2014-01-07 11:20:00,438 - [http-bio-8080-exec-7] - ERROR - onnaireStringResourceModel - Error while resolving variable values in: Questionnaire description: The language used for he in-home consent is $('Participants:CONSENT_LANGUAGE') java.lang.NullPointerException

If that is not possible I would like to add a variable to the Section Label, but it adds HTLM tags around it. Example in the images added to the Jira.

ymarcon commented 10 years ago

Comment created by @ymarcon:

Could you provide the full stack trace of the NullPointerException?

ymarcon commented 10 years ago

Comment created by @dwainelson:

If I have to instead of the section label I would use the page label.

ymarcon commented 10 years ago

Comment created by @obiba-ci:

SUCCESS: Integrated in !http://ci.obiba.org/images/16x16/blue.png! Onyx 1.8.x #736 ONYX-1718 Do not escape the HTML strings in section and page labels. (yannick.marcon: 3cc8cb156943e7a7f2bd2d78f714b523a367b17e)

ymarcon commented 10 years ago

Comment created by @ymarcon:

Your choice: variable value can be injected in the questionnaire description, the section or page labels.

ymarcon commented 10 years ago

Comment created by @obiba-ci:

SUCCESS: Integrated in !http://ci.obiba.org/images/16x16/blue.png! Onyx 1.8.x #737 ONYX-1718 Get currently interviewed participant from active questionnaire service. (yannick.marcon: 90450d6bd0f731693ff075aa6f02885d2c1a1b85)

ymarcon commented 10 years ago

Comment created by @obiba-ci:

SUCCESS: Integrated in !http://ci.obiba.org/images/16x16/blue.png! Onyx #3658 ONYX-1718 Do not escape the HTML strings in section and page labels. (yannick.marcon: 15d3b5138fe8a8dccdad8543a0dc17e5c356b863) ONYX-1718 Get currently interviewed participant from active questionnaire service. (yannick.marcon: 133052586891ad39ad8f5d2f692ad18d42fdbc90)

ymarcon commented 9 years ago

Comment created by @obiba-ci:

UNSTABLE: Integrated in !http://ci.obiba.org/images/16x16/yellow.png! Onyx 1.9.x #201 ONYX-1718 Do not escape the HTML strings in section and page labels. (yannick.marcon: 15d3b5138fe8a8dccdad8543a0dc17e5c356b863) ONYX-1718 Get currently interviewed participant from active questionnaire service. (yannick.marcon: 133052586891ad39ad8f5d2f692ad18d42fdbc90)

ymarcon commented 10 years ago

Issue was closed with resolution "Fixed"