Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14840291
D14308.id34540.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.id34540.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
Sun, Feb 2, 4:59 AM (21 h, 12 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7083411
Default Alt Text
D14308.id34540.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