Extra Questions
Removed html from cvs export Change-Id: I1dc27d715a99ddab7a28d86392f428d1e58795cd Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
parent
29399d1b15
commit
59873e6e22
|
@ -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'] = '';
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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://';
|
||||
|
|
Loading…
Reference in New Issue