]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1102003: The URL and status whiteboard fields display ARRAY(...) instead of real...
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 24 Nov 2014 09:32:18 +0000 (10:32 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 24 Nov 2014 09:32:18 +0000 (10:32 +0100)
r=dkl a=glob

t/008filter.t
template/en/default/bug/edit.html.tmpl
template/en/default/global/header.html.tmpl

index 204bbdc43dcdf4bd77f69087ce6b9bd6bfe0c17e..fea018d439a398cb601acfab76f632f25eb3cd93 100644 (file)
@@ -212,7 +212,7 @@ sub directive_ok {
     return 1 if $directive =~ /FILTER\ (html|csv|js|base64|css_class_quote|ics|
                                         quoteUrls|time|uri|xml|lower|html_light|
                                         obsolete|inactive|closed|unitconvert|
-                                        txt|html_linebreak|markdown|none)\b/x;
+                                        txt|html_linebreak|markdown|none|null)\b/x;
 
     return 0;
 }
index a7674faf856f7c502c4e1ee4b8e6f78961dceaa5..516a24ed8ec460b82d5a2fa0f94bbff4252883c6 100644 (file)
         accesskey = "s"
         tag_name = 'span'
       %]
-      [% PROCESS input inputname => "short_desc" size => "80"
+      [% INCLUDE input inputname => "short_desc" size => "80"
                        maxlength => 255 spellcheck => "true" no_td => 1 %]
     </div>
   </div>
         (<a href="#" id="bz_url_edit_action">edit</a>)</span>
       [% END %]
       <span id="bz_url_input_area">
-        [% url_output =  PROCESS input no_td=1 inputname => "bug_file_loc" size => "40" colspan => 2 %]
+        [% url_output =  INCLUDE input no_td=1 inputname => "bug_file_loc" size => "40" colspan => 2 %]
         [% IF NOT bug.check_can_change_field("bug_file_loc", 0, 1)
               AND is_safe_url(bug.bug_file_loc) %]
           <a href="[% bug.bug_file_loc FILTER html %]">[% url_output FILTER none %]</a>
         editable = 1
         accesskey = "w"
       %]
-      [% PROCESS input inputname => "status_whiteboard" size => "40" colspan => 2 %]
+      [% INCLUDE input inputname => "status_whiteboard" size => "40" colspan => 2 %]
     </tr>
   [% END %]
   
   [% IF no_td != 1 %]
   <td[% " colspan=\"$colspan\"" IF colspan %]>
   [% END %]
-    [% val = value ? value : bug.$inputname %]
+    [% val = bug.$inputname %]
     [% IF bug.check_can_change_field(inputname, 0, 1) %]
        <input id="[% inputname %]" name="[% inputname %]" class="text_input"
               value="[% val FILTER html %]"[% " size=\"$size\"" IF size %]
   [% IF no_td != 1 %]  
   </td>
   [% END %]
-  [% no_td = 0 %]
-  [% maxlength = 0 %]
-  [% colspan = 0 %]
-  [% size = 0 %]
-  [% value = undef %]
-  [% spellcheck = undef %]
 [% END %]
+
 [% BLOCK commit_button %]
   [% IF user.id %]
     <div class="knob-buttons">
index dd1923f29f40af2f04d1b6207702eceea90a94cb..5c731c008a001037349fdb2b91358b0c1f10cf68 100644 (file)
@@ -82,7 +82,7 @@
   "js/jquery/ui/jquery-ui-structure-min.css",
   "js/jquery/ui/jquery-ui-theme-min.css",
 ] %]
-[% undef = style_urls.import(jquery_css, jq_css_urls) %]
+[% style_urls.import(jquery_css, jq_css_urls) FILTER null %]
 
 [%# Add jQuery cookie support %]
 [% jquery.push("cookie") %]