From 096d64e9713fc9757c19890e090af0a2a148fbf4 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Thu, 17 Mar 2005 15:50:45 +0000 Subject: [PATCH] Bug 278717: Can't create "create bug" template with multiple CCs if you use usemenuforusers - Patch by Marc Schumann r=myk, a=myk --- webtools/bugzilla/enter_bug.cgi | 2 +- .../bugzilla/template/en/default/global/userselect.html.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webtools/bugzilla/enter_bug.cgi b/webtools/bugzilla/enter_bug.cgi index 58662489a3c..5161fd21784 100755 --- a/webtools/bugzilla/enter_bug.cgi +++ b/webtools/bugzilla/enter_bug.cgi @@ -411,7 +411,7 @@ else { $vars->{'blocked'} = formvalue('blocked'); $vars->{'deadline'} = formvalue('deadline'); - $vars->{'cc'} = formvalue('cc'); + $vars->{'cc'} = join(', ', $cgi->param('cc')); $vars->{'comment'} = formvalue('comment'); $vars->{'commentprivacy'} = formvalue('commentprivacy'); diff --git a/webtools/bugzilla/template/en/default/global/userselect.html.tmpl b/webtools/bugzilla/template/en/default/global/userselect.html.tmpl index 24b16c9ecfd..7a46891abdb 100644 --- a/webtools/bugzilla/template/en/default/global/userselect.html.tmpl +++ b/webtools/bugzilla/template/en/default/global/userselect.html.tmpl @@ -41,9 +41,9 @@ [% END %] [% FOREACH tmpuser = user.get_userlist %] - [% IF tmpuser.visible OR value == tmpuser.login %] + [% IF tmpuser.visible OR value.match("\\b$tmpuser.login\\b") %] [% END %] [% END %]