diff options
author | 2012-12-19 23:40:51 +0100 | |
---|---|---|
committer | 2012-12-19 23:40:51 +0100 | |
commit | e79713b240970bd0c1b394fcc69bd66e15e82641 (patch) | |
tree | 3a0c2582b22d25eecd1e2ad0b387d1a0ac95dd0d /enter_bug.cgi | |
parent | Bug 813628 - New extension hook for Bugzilla::Bug::update called bug_start_of... (diff) | |
download | bugzilla-e79713b240970bd0c1b394fcc69bd66e15e82641.tar.gz bugzilla-e79713b240970bd0c1b394fcc69bd66e15e82641.tar.bz2 bugzilla-e79713b240970bd0c1b394fcc69bd66e15e82641.zip |
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 7a8cebf43..1f80501d5 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'); |