]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Revert "Bug 1534084 - Hide Phablicator requests from Attachment list"
authorKohei Yoshino <kohei.yoshino@gmail.com>
Thu, 28 Mar 2019 17:36:40 +0000 (13:36 -0400)
committerGitHub <noreply@github.com>
Thu, 28 Mar 2019 17:36:40 +0000 (13:36 -0400)
extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl
extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
extensions/PhabBugz/Extension.pm

index b9291ef3d49e863d7623a8612e5225746ed2849d..1e5da5b95411fbb770efb37e566ea2b0f73b2fde 100644 (file)
@@ -24,7 +24,6 @@
         [%~ " bz_private" IF attachment.isprivate %]
         [%~ " attach-obsolete" IF attachment.isobsolete %]
         [%~ " attach-patch" IF attachment.can_review %]
-        [%~ " bz_default_hidden" IF phabricator_revisions.size && attachment.contenttype == phabricator_content_type %]
     " [% IF attachment.isobsolete %]style="display:none"[% END %]>
       <td class="attach-desc-td">
         <div class="attach-desc">
index 0048e4f0558aef62882db04b5b15718a758cd68a..27c50f2a5010f1905fcb2063fd29275ddc219fb4 100644 (file)
@@ -49,7 +49,6 @@
   obsolete_attachments = 0;
   FOREACH attachment IN bug.attachments;
     NEXT IF attachment.isprivate && !(user.is_insider || attachment.attacher.id == user.id);
-    NEXT IF phabricator_revisions.size && attachment.contenttype == phabricator_content_type;
     IF attachment.isobsolete;
       obsolete_attachments = obsolete_attachments + 1;
     ELSE;
index b62b1989ce6358c1c5d6898ae2fba2edbbc9a974..d8d0dce392eec00cd608df31f91a0694ff9e1c43 100644 (file)
@@ -38,7 +38,6 @@ sub template_before_process {
       $active_revision_count++ if !$attachment->isobsolete;
       $has_revisions = 1;
     }
-    $vars->{phabricator_content_type} = PHAB_CONTENT_TYPE;
     $vars->{phabricator_revisions} = $has_revisions;
     $vars->{phabricator_active_revision_count} = $active_revision_count;
   }