Skip to content

Commit 5638671

Browse files
authored
Merge pull request #86 from subotkevic/master
Fix for parsing single quotes in create/edit forms
2 parents 274b65b + 06ec364 commit 5638671

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Builders/ViewsBuilder.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private function buildEditForm()
171171
{
172172
$form = '';
173173
foreach ($this->fields as $field) {
174-
$title = $field->label;
174+
$title = addslashes($field->label);
175175
$label = $field->title;
176176
if (in_array($field->validation,
177177
$this->starred) && $field->type != 'password' && $field->type != 'file' && $field->type != 'photo'
@@ -222,7 +222,7 @@ private function buildCreateForm()
222222
{
223223
$form = '';
224224
foreach ($this->fields as $field) {
225-
$title = $field->label;
225+
$title = addslashes($field->label);
226226
$key = $field->title;
227227
if (in_array($field->validation, $this->starred)) {
228228
$title .= '*';

0 commit comments

Comments
 (0)