Skip to content

Commit 931f16d

Browse files
author
Nathan Glasl
committed
Correcting an issue where the value wasn't correctly written for a custom tag type, namely "textarea".
1 parent 4d7cf0f commit 931f16d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code/fields/MultiValueTextField.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function Field($properties = array()) {
3838
unset($fieldAttr['value']);
3939
$fields[] = $this->createReadonlyInput($fieldAttr, $v);
4040
} else {
41-
$fields[] = $this->createInput($fieldAttr);
41+
$fields[] = $this->createInput($fieldAttr, $v);
4242
}
4343
}
4444
}
@@ -58,8 +58,8 @@ public function createReadonlyInput($attributes, $value) {
5858
return self::create_tag('span', $attributes, Convert::raw2xml($value));
5959
}
6060

61-
public function createInput($attributes) {
62-
return self::create_tag($this->tag, $attributes);
61+
public function createInput($attributes, $value = null) {
62+
return self::create_tag($this->tag, $attributes, $value);
6363
}
6464

6565
public function performReadonlyTransformation() {

0 commit comments

Comments
 (0)