1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00

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:
epriestley 2016-05-11 15:30:57 -07:00
parent b21b43131c
commit 54409e7716

View file

@ -51,7 +51,11 @@ final class PhabricatorTextAreaEditField
protected function getValueForControl() {
$value = $this->getValue();
return implode("\n", $value);
if ($this->getIsStringList()) {
return implode("\n", $value);
} else {
return $value;
}
}
protected function newConduitParameterType() {