Skip to content

Commit

Permalink
Correcting an issue where the value wasn't correctly written for a cu…
Browse files Browse the repository at this point in the history
…stom tag type, namely "textarea".
  • Loading branch information
Nathan Glasl committed Jul 15, 2016
1 parent 4d7cf0f commit 931f16d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/fields/MultiValueTextField.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function Field($properties = array()) {
unset($fieldAttr['value']);
$fields[] = $this->createReadonlyInput($fieldAttr, $v);
} else {
$fields[] = $this->createInput($fieldAttr);
$fields[] = $this->createInput($fieldAttr, $v);
}
}
}
Expand All @@ -58,8 +58,8 @@ public function createReadonlyInput($attributes, $value) {
return self::create_tag('span', $attributes, Convert::raw2xml($value));
}

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

public function performReadonlyTransformation() {
Expand Down

0 comments on commit 931f16d

Please sign in to comment.