diff options
author | bugreport%peshkin.net <> | 2005-10-20 03:16:12 +0000 |
---|---|---|
committer | bugreport%peshkin.net <> | 2005-10-20 03:16:12 +0000 |
commit | b2966165174d850b13be0e25eba6e9053142ed00 (patch) | |
tree | 76dacbad2b7941d582dc095f7a06352533411ade /Bugzilla | |
parent | a38539a73699a6d03c6d129375cecde85267269a (diff) | |
download | bugs-b2966165174d850b13be0e25eba6e9053142ed00.tar bugs-b2966165174d850b13be0e25eba6e9053142ed00.tar.gz bugs-b2966165174d850b13be0e25eba6e9053142ed00.tar.bz2 bugs-b2966165174d850b13be0e25eba6e9053142ed00.tar.xz bugs-b2966165174d850b13be0e25eba6e9053142ed00.zip |
Bug 149504 Permit a reference to a URL to be treated as an attachment
Patch by Joel Peshkin <bugreport@peshkin.net>
r=lpsolit, a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Attachment.pm | 1 | ||||
-rw-r--r-- | Bugzilla/Config/Attachment.pm | 5 | ||||
-rw-r--r-- | Bugzilla/DB/Schema.pm | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index 4a61154b7..c4e7580ae 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -91,6 +91,7 @@ sub _retrieve { '%Y.%m.%d %H:%i') . " AS attached", 'attachments.filename AS filename', 'attachments.ispatch AS ispatch', + 'attachments.isurl AS isurl', 'attachments.isobsolete AS isobsolete', 'attachments.isprivate AS isprivate' ); diff --git a/Bugzilla/Config/Attachment.pm b/Bugzilla/Config/Attachment.pm index 8192d5f9f..449908528 100644 --- a/Bugzilla/Config/Attachment.pm +++ b/Bugzilla/Config/Attachment.pm @@ -41,6 +41,11 @@ sub get_param_list { my $class = shift; my @param_list = ( { + name => 'allow_attach_url', + type => 'b', + default => 0 + }, + { name => 'maxpatchsize', type => 't', default => '1000', diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index 6abe41cdd..8379f0b12 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -313,6 +313,8 @@ use constant ABSTRACT_SCHEMA => { DEFAULT => 'FALSE'}, isprivate => {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE'}, + isurl => {TYPE => 'BOOLEAN', NOTNULL => 1, + DEFAULT => 'FALSE'}, ], INDEXES => [ attachments_bug_id_idx => ['bug_id'], |