Skip to content

Commit

Permalink
Solve problem using data attr. in field renderer. Closes Wunderbyte-G…
Browse files Browse the repository at this point in the history
  • Loading branch information
dasistwas committed Jun 25, 2021
1 parent a8924e9 commit 156f483
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions renderer/renderer_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function definition() {
$mform->addGroup($group, 'notvisiblegroup', get_string('notvisible', 'datalynx'),
array('<br />'
), false);
$mform->setType('notvisibletemplate', PARAM_CLEANHTML);
$mform->setType('notvisibletemplate', PARAM_RAW);
$mform->setDefault('notvisibleoptions', '___0___');

// Display template.
Expand All @@ -99,7 +99,7 @@ protected function definition() {
$mform->addGroup($group, 'displaytemplategroup', get_string('displaytemplate', 'datalynx'),
array('<br />'
), false);
$mform->setType('displaytemplate', PARAM_CLEANHTML);
$mform->setType('displaytemplate', PARAM_RAW);
$mform->addHelpButton('displaytemplategroup', 'displaytemplate', 'datalynx');
$mform->setDefault('displayoptions', '___4___');

Expand All @@ -115,7 +115,7 @@ protected function definition() {
$mform->disabledIf('novaluetemplate', 'novalueoptions', 'eq', '___0___');
$mform->disabledIf('novaluetemplate', 'novalueoptions', 'eq', '___1___');
$mform->addGroup($group, 'novaluetemplategroup', get_string('novalue', 'datalynx'), array('<br />'), false);
$mform->setType('novaluetemplate', PARAM_CLEANHTML);
$mform->setType('novaluetemplate', PARAM_RAW);
$mform->setDefault('novalueoptions', '___1___');

// Edit template.
Expand All @@ -128,7 +128,7 @@ protected function definition() {
$mform->disabledIf('edittemplate', 'editoptions', 'eq', '___1___');
$mform->disabledIf('edittemplate', 'editoptions', 'eq', '___4___');
$mform->addGroup($group, 'edittemplategroup', get_string('edittemplate', 'datalynx'), array('<br />'), false);
$mform->setType('edittemplate', PARAM_CLEANHTML);
$mform->setType('edittemplate', PARAM_RAW);
$mform->addHelpButton('edittemplategroup', 'edittemplate', 'datalynx');
$mform->setDefault('editoptions', '___1___');

Expand All @@ -143,7 +143,7 @@ protected function definition() {
$mform->disabledIf('noteditabletemplate', 'noteditableoptions', 'eq', '___1___');
$mform->disabledIf('noteditabletemplate', 'noteditableoptions', 'eq', '___3___');
$mform->addGroup($group, 'noteditablegroup', get_string('noteditable', 'datalynx'), array('<br />'), false);
$mform->setType('noteditabletemplate', PARAM_CLEANHTML);
$mform->setType('noteditabletemplate', PARAM_RAW);
$mform->setDefault('noteditableoptions', '___1___');

$this->add_action_buttons();
Expand Down

0 comments on commit 156f483

Please sign in to comment.