mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUGFIX: added ID to literal field html to allow the js validation to apply
This commit is contained in:
parent
c073596b68
commit
3d9b764987
@ -21,7 +21,7 @@ class EditableLiteralField extends EditableFormField {
|
|||||||
|
|
||||||
function getFormField() {
|
function getFormField() {
|
||||||
return new LiteralField("LiteralField[$this->ID]",
|
return new LiteralField("LiteralField[$this->ID]",
|
||||||
"<div class='field text'><label class='left'>$this->Title</label><div class='middleColumn literalFieldArea'>". $this->getSetting('Content') ."</div></div>");
|
"<div id='$this->Name' class='field text'><label class='left'>$this->Title</label><div class='middleColumn literalFieldArea'>". $this->getSetting('Content') ."</div></div>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user