|
|
@ -1169,7 +1169,7 @@ class Exercise { |
|
|
|
|
|
|
|
|
|
|
|
$defaults['randomAnswers'] = $this->selectRandomAnswers(); |
|
|
|
$defaults['randomAnswers'] = $this->selectRandomAnswers(); |
|
|
|
$defaults['exerciseType'] = $this->selectType(); |
|
|
|
$defaults['exerciseType'] = $this->selectType(); |
|
|
|
$defaults['exerciseTitle'] = html_entity_decode($this->selectTitle()); |
|
|
|
$defaults['exerciseTitle'] = api_html_entity_decode($this->selectTitle()); |
|
|
|
$defaults['exerciseDescription'] = $this->selectDescription(); |
|
|
|
$defaults['exerciseDescription'] = $this->selectDescription(); |
|
|
|
$defaults['exerciseAttempts'] = $this->selectAttempts(); |
|
|
|
$defaults['exerciseAttempts'] = $this->selectAttempts(); |
|
|
|
$defaults['exerciseFeedbackType'] = $this->selectFeedbackType(); |
|
|
|
$defaults['exerciseFeedbackType'] = $this->selectFeedbackType(); |
|
|
@ -1212,7 +1212,7 @@ class Exercise { |
|
|
|
$defaults['pass_percentage'] = ''; |
|
|
|
$defaults['pass_percentage'] = ''; |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$defaults['exerciseTitle'] = html_entity_decode($this->selectTitle()); |
|
|
|
$defaults['exerciseTitle'] = api_html_entity_decode($this->selectTitle()); |
|
|
|
$defaults['exerciseDescription'] = $this->selectDescription(); |
|
|
|
$defaults['exerciseDescription'] = $this->selectDescription(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (api_get_setting('search_enabled') === 'true') { |
|
|
|
if (api_get_setting('search_enabled') === 'true') { |
|
|
@ -1250,7 +1250,7 @@ class Exercise { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function processCreation($form, $type = '') |
|
|
|
function processCreation($form, $type = '') |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->updateTitle(htmlentities($form->getSubmitValue('exerciseTitle'))); |
|
|
|
$this->updateTitle(api_htmlentities($form->getSubmitValue('exerciseTitle'))); |
|
|
|
$this->updateDescription($form->getSubmitValue('exerciseDescription')); |
|
|
|
$this->updateDescription($form->getSubmitValue('exerciseDescription')); |
|
|
|
$this->updateAttempts($form->getSubmitValue('exerciseAttempts')); |
|
|
|
$this->updateAttempts($form->getSubmitValue('exerciseAttempts')); |
|
|
|
$this->updateFeedbackType($form->getSubmitValue('exerciseFeedbackType')); |
|
|
|
$this->updateFeedbackType($form->getSubmitValue('exerciseFeedbackType')); |
|
|
|