Merge pull request #7512 from creative-commoners/pulls/4.0/fix-escaped-readonly-treedropdown

FIX Do not escape the readonly values since they get escaped when rendered
This commit is contained in:
Daniel Hensby 2017-10-25 12:18:36 +01:00 committed by GitHub
commit 79a5daa0a9

View File

@ -53,7 +53,6 @@ class LookupField extends MultiSelectField
if ($mapped) {
$attrValue = implode(', ', array_values($mapped));
$attrValue = Convert::raw2xml($attrValue);
$inputValue = implode(', ', array_values($values));
} else {
$attrValue = '<i>('._t('SilverStripe\\Forms\\FormField.NONE', 'none').')</i>';