]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 903337 - Do not display the CC list and the "Remove selected CCs" checkbox if...
authorSunil Joshi <joshi_sunil@in.com>
Mon, 26 Aug 2013 22:36:31 +0000 (08:36 +1000)
committerSimon Green <sgreen@redhat.com>
Mon, 26 Aug 2013 22:36:31 +0000 (08:36 +1000)
r=simon, a=glob

template/en/default/attachment/create.html.tmpl
template/en/default/attachment/edit.html.tmpl
template/en/default/bug/edit.html.tmpl
template/en/default/bug/show-multiple.html.tmpl

index 8f5477e2302e78a3c507e5000f863bc2d8ac54e8..abc0f97bf137151974172eb5f7c861494298f433 100644 (file)
@@ -92,7 +92,7 @@ TUI_hide_default('attachment_text_field');
           cols    = constants.COMMENT_COLS
           wrap    = 'soft'
         %]
-        [% IF NOT bug.cc || NOT bug.cc.contains(user.login) %]
+        [% IF NOT bug.cc.contains(user.login) %]
           <br>
           <input type="checkbox" id="addselfcc" name="addselfcc"
             [%~ ' checked="checked"'
index 67dcabd7563f45727ad479e27633bf210aeec754..518737788acd5e9676e1a117097c9eb444a28cfb 100644 (file)
               wrap    = 'soft'
               classes = classNames
             %]
-            [% IF NOT attachment.bug.cc || NOT attachment.bug.cc.contains(user.login) %]
+            [% IF NOT attachment.bug.cc.contains(user.login) %]
               <input type="checkbox" id="addselfcc" name="addselfcc"
                 [%~ ' checked="checked"'
                     IF user.settings.state_addselfcc.value == 'always'
index 5c84d71c6355d2ab49ed9da595ff90292b9a06e7..075fc518b81af9ed13771f3d75781716533e7ca7 100644 (file)
       </th>
       <td>
         [% IF user.id %]
-          [% IF NOT bug.cc || NOT bug.cc.contains(user.login) %]
+          [% IF NOT bug.cc.contains(user.login) %]
             <input type="checkbox" id="addselfcc" name="addselfcc"
               [% " checked=\"checked\""
                    IF user.settings.state_addselfcc.value == 'always'
             <br> 
           [% END %]
         [% END %]
-        [% bug.cc.size || 0  FILTER html %] 
+        [% bug.cc.size FILTER html %] 
         [% IF bug.cc.size == 1 %]
           user
         [% ELSE %]
                 %]
             </div>
           [% END %]
-          [% IF bug.cc %]
+          [% IF bug.cc.size %]
             <select id="cc" multiple="multiple" size="5"
               [% IF bug.user.canedit %]name="cc"[% END %]>
               [% FOREACH c = bug.cc %]
index 7207e8cf9dde71bbaf52aa1e4af92c73ebcc4a0f..fb11bf010bf0bab3e3a8cde8d86eeb3e4e35b3ee 100644 (file)
@@ -76,7 +76,7 @@
       [% rightcells.push('qa_contact') %]
     [% END %]
     [% rightcells.push('') %]
-    [% IF bug.cc %]
+    [% IF bug.cc.size %]
       [% rightcells.push('cc') %]
     [% END %]
     [% IF bug.keywords %]