diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-12-19 23:38:07 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-12-19 23:38:07 +0100 |
commit | 3272176a7b37b3bd30ef376f7b782f736d207cd4 (patch) | |
tree | 5629c89e1e5546f8f1b765171d40f645f2356a98 /enter_bug.cgi | |
parent | 387608caac85ccf6c0782572420ecbdae4e301bf (diff) | |
download | bugzilla-3272176a7b37b3bd30ef376f7b782f736d207cd4.tar.gz bugzilla-3272176a7b37b3bd30ef376f7b782f736d207cd4.tar.xz |
Bug 819330: Bugzilla crashes when cloning a bug if the CC list is empty
r=dkl a=LpSolit
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index a4dde21ba..a609a2b9a 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -208,7 +208,7 @@ if ($cloned_bug_id) { $vars->{'deadline'} = $cloned_bug->deadline; $vars->{'estimated_time'} = $cloned_bug->estimated_time; - if (defined $cloned_bug->cc) { + if (scalar @{$cloned_bug->cc}) { $vars->{'cc'} = join (", ", @{$cloned_bug->cc}); } else { $vars->{'cc'} = formvalue('cc'); |