Commit 766666a0 authored by Denis Chenu's avatar Denis Chenu
Browse files

[fix] Mandatory string only for mandatory question, missing is not mandatory

parent 8c7d8360
# more accessibility for LimeSurvey #
# More accessibility for LimeSurvey #
Some more accessibility for LimeSurvey, actually:
* Replace the label for single question choice by label to the question (to be included in LimeSurvey core).
* Use a real string for the asterisk in mandatory question type
* Add fieldset for list of answers and subquestion
* Optionnal: Use a real string for the asterisk in mandatory question type
* Optionnal: Add fieldset for list of answers and subquestion
## Installation
......
......@@ -104,7 +104,7 @@ class moreAccessibility extends PluginBase
if(!$this->get('updateAsterisk'))
return;
$oEvent=$this->getEvent();
if($oEvent->get('man_class'))
if($oEvent->get('man_class') && strpos($oEvent->get('man_class'),'mandatory') !== false)
{
// Get the string from LimeSurvey core.
$sMandatoryText=gT('This question is mandatory')."."; // Arg
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment