Extra Questions

Removed html from cvs export

Change-Id: I1dc27d715a99ddab7a28d86392f428d1e58795cd
Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
smarcet 2021-06-03 10:43:37 -03:00
parent 29399d1b15
commit 59873e6e22
3 changed files with 3 additions and 2 deletions

View File

@ -65,6 +65,7 @@ final class AdminPresentationCSVSerializer extends AdminPresentationSerializer
$values['public_video'] = sprintf('=HYPERLINK("%s";"%s")', $media_upload_csv['public_url'], $media_upload_csv['filename']);
}
}
// extra questions
$values['extra_questions'] = '';

View File

@ -98,6 +98,6 @@ abstract class ExtraQuestionAnswer extends SilverstripeBaseModel
if($this->question->allowsValues()){
$value = $this->question->getNiceValue($value);
}
return sprintf("%s : %s", $this->question->getLabel(), $value);
return sprintf("%s : %s", strip_tags($this->question->getLabel()), $value);
}
}

View File

@ -64,7 +64,7 @@ class AppServiceProvider extends ServiceProvider
static $extra_question_dto_validation_rules = [
'question_id' => 'required|int',
'answer' => 'nullable|string|max:255',
'answer' => 'nullable|string|max:512',
];
const DefaultSchema = 'https://';