Use link search value to get email addresses as participants working again.

This commit is contained in:
Nathan Gray 2014-09-22 16:53:53 +00:00
parent c0b92e9f10
commit d75cbbdaba

View File

@ -323,9 +323,8 @@ class calendar_uiforms extends calendar_ui
case 'add': case 'add':
// email or rfc822 addresse (eg. "Ralf Becker <ralf@domain.com>") in the search field // email or rfc822 addresse (eg. "Ralf Becker <ralf@domain.com>") in the search field
// ToDo: get eTemplate to return that field
$matches = array(); $matches = array();
if (($email = $_POST['exec']['participants']['resource']['query']) && if (($email = $content['participants']['resource']['search']) &&
(preg_match('/^(.*<)?([a-z0-9_.-]+@[a-z0-9_.-]{5,})>?$/i',$email,$matches))) (preg_match('/^(.*<)?([a-z0-9_.-]+@[a-z0-9_.-]{5,})>?$/i',$email,$matches)))
{ {
$status = calendar_so::combine_status('U',$content['participants']['quantity'],$content['participants']['role']); $status = calendar_so::combine_status('U',$content['participants']['quantity'],$content['participants']['role']);