Fix an issue with TextAreaEditField affecting Paste
Summary: Fixes T10952. Fixes T10930. I didn't implement this method correctly when I expanded this field for repositories. Test Plan: Edited a paste without warnings. Reviewers: avivey, chad Reviewed By: chad Maniphest Tasks: T10930, T10952 Differential Revision: https://secure.phabricator.com/D15892
This commit is contained in:
parent
b21b43131c
commit
54409e7716
|
@ -51,7 +51,11 @@ final class PhabricatorTextAreaEditField
|
||||||
|
|
||||||
protected function getValueForControl() {
|
protected function getValueForControl() {
|
||||||
$value = $this->getValue();
|
$value = $this->getValue();
|
||||||
return implode("\n", $value);
|
if ($this->getIsStringList()) {
|
||||||
|
return implode("\n", $value);
|
||||||
|
} else {
|
||||||
|
return $value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function newConduitParameterType() {
|
protected function newConduitParameterType() {
|
||||||
|
|
Loading…
Reference in a new issue