-
-
Notifications
You must be signed in to change notification settings - Fork 362
Closed
Labels
confirmed bugSomething isn't workingSomething isn't working
Description
I'm trying to have special chars as ' in the name, but when I render it in the user_detail view, the field is showed wrong.
Expected
<input type="text" class="form-control" name="title" autocomplete="off" value="Pepe' Grillo"="" placeholder="Please enter the user name" data-validate="{"minLength":1,"maxLength":25,"label":"Username"}" disabled="">
what I got
<input type="text" class="form-control" name="title" autocomplete="off" value="Pepe" Grillo'="" placeholder="Please enter the user name" data-validate="{"minLength":1,"maxLength":25,"label":"Username"}" disabled="">
To solve that I found a easy trick, here
replace
$input = "
<div class='input-group'>
<span class='input-group-addon'>{{addon}}</span>
<input type='text' class='form-control' name='{{name}}' autocomplete='off' value='{{value}}' placeholder='{{placeholder}}' data-validate='{{validator_str}}' {{disabled}}>
</div>";
by
$input = '
<div class="input-group">
<span class="input-group-addon">{{addon}}</span>
<input type="text" class="form-control" name="{{name}}" autocomplete="off" value="{{value}}" placeholder="{{placeholder}}" data-validate="{{validator_str}}" {{disabled}}>
</div>';
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
confirmed bugSomething isn't workingSomething isn't working