Page MenuHomePhabricator

D14308.diff
No OneTemporary

D14308.diff

diff --git a/src/view/form/PHUIInfoView.php b/src/view/form/PHUIInfoView.php
--- a/src/view/form/PHUIInfoView.php
+++ b/src/view/form/PHUIInfoView.php
@@ -50,7 +50,7 @@
require_celerity_resource('phui-info-view-css');
$errors = $this->errors;
- if ($errors) {
+ if (count($errors) > 1) {
$list = array();
foreach ($errors as $error) {
$list[] = phutil_tag(
@@ -64,6 +64,8 @@
'class' => 'phui-info-view-list',
),
$list);
+ } else if (count($errors) == 1) {
+ $list = $this->errors[0];
} else {
$list = null;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 21, 10:17 PM (4 w, 14 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714526
Default Alt Text
D14308.diff (605 B)

Event Timeline