为bugzilla提交bug时添加默认内容(template)

搭建bugzilla服务器后,提交bug时,很多时候希望有如下默认格式:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:


修改方法:

cd bugzilla/template/en/default/bug/create

vim create.html.tmpl


找到:

  
    Description:
    

      [% defaultcontent = BLOCK %]
        [% IF cloned_bug_id %]
+++ This [% terms.bug %] was initially created as a clone of [% terms.Bug %] #[% cloned_bug_id %] +++


        [% END %]
        [%-# We are within a BLOCK. The comment will be correctly HTML-escaped
          # by global/textarea.html.tmpl. So we must not escape the comment here. %]
        [% comment FILTER none %]
      [%- END %]
      [% INCLUDE bug/comment.html.tmpl
         minrows        = 10
         maxrows        = 25
         cols           = constants.COMMENT_COLS
         defaultcontent = defaultcontent
       %]
      

将“defaultcontent = defaultcontent”后面的那个defaultcontent修改成需要的内容,注意内容要用引号括起来。


你可能感兴趣的:(测试)