Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13985674
D14308.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
605 B
Referenced Files
None
Subscribers
None
D14308.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D14308: In PHUIInfoView, only show list UI if more than 1 item
Attached
Detach File
Event Timeline
Log In to Comment