summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReed Loden <reed@reedloden.com>2012-01-12 06:50:05 +0100
committerByron Jones <bjones@mozilla.com>2012-01-12 06:50:05 +0100
commita16d7573b3163029e65ec1f14f44df58eae9c66a (patch)
tree5d4acfe88ca35c9d975465f0aaa58e32ccc9e218
parent943619d811acc82800a916b38905c0d5846e74fe (diff)
downloadbugzilla-a16d7573b3163029e65ec1f14f44df58eae9c66a.tar.gz
bugzilla-a16d7573b3163029e65ec1f14f44df58eae9c66a.tar.xz
Bug 717502: add PDF to the list of selectable content-types
-rw-r--r--Bugzilla/Constants.pm1
-rw-r--r--template/en/default/attachment/createformcontents.html.tmpl1
2 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm
index 5f5489aea..841bdd9e4 100644
--- a/Bugzilla/Constants.pm
+++ b/Bugzilla/Constants.pm
@@ -456,6 +456,7 @@ use constant contenttypes =>
"csv" => "text/csv" ,
"png" => "image/png" ,
"ics" => "text/calendar" ,
+ "pdf" => "application/pdf" ,
};
# Usage modes. Default USAGE_MODE_BROWSER. Use with Bugzilla->usage_mode.
diff --git a/template/en/default/attachment/createformcontents.html.tmpl b/template/en/default/attachment/createformcontents.html.tmpl
index 96ca587d2..7f738c07f 100644
--- a/template/en/default/attachment/createformcontents.html.tmpl
+++ b/template/en/default/attachment/createformcontents.html.tmpl
@@ -100,6 +100,7 @@
{type => "image/gif", desc => "GIF image"},
{type => "image/jpeg", desc => "JPEG image"},
{type => "image/png", desc => "PNG image"},
+ {type => "application/pdf", desc => "PDF document"},
{type => "application/octet-stream", desc => "binary file"}]
%]
[% Hook.process("mimetypes", "attachment/createformcontents.html.tmpl") %]