We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 83b767b + 1638b24 commit c29b759Copy full SHA for c29b759
vanilla/applications/vanilla/views/discussion/index.php
@@ -18,7 +18,16 @@
18
$this->fireEvent('BeforeDiscussionOptions');
19
//writeBookmarkLink();
20
echo bookmarkButton($this->data('Discussion'));
21
-echo getDiscussionOptionsDropdown();
+$dropdown = getDiscussionOptionsDropdown();
22
+$dropdownOptions = $dropdown->getItems();
23
+// FIX: https://github.com/topcoder-platform/forums/issues/499
24
+// Hide the dropdown if there is only the Edit option. The Edit option will be displayed in inline options.
25
+$hasOnlyEditOption = count($dropdownOptions) == 1 && $dropdownOptions['edit'];
26
+if(!$hasOnlyEditOption) {
27
+ echo getDiscussionOptionsDropdown();
28
+}
29
+
30
31
writeAdminCheck();
32
33
echo '</div>';
0 commit comments