From: <ral...@us...> - 2006-12-27 17:15:23
|
Author: ralfbecker Date: Wed Dec 27 18:11:47 2006 New Revision: 23144 URL: http://www.egroupware.org/viewvc?rev=3D3D23144&view=3D3Drev Log: fixed freetimesearch to work with new participants tab Modified: trunk/calendar/inc/class.uiforms.inc.php Modified: trunk/calendar/inc/class.uiforms.inc.php URL: http://www.egroupware.org/viewvc/trunk/calendar/inc/class.uiforms.inc.= =3D php?rev=3D3D23144&r1=3D3D23143&r2=3D3D23144&view=3D3Ddiff =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D= =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D= =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D= =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D =3D3D=3D3D=3D3D --- trunk/calendar/inc/class.uiforms.inc.php (original) +++ trunk/calendar/inc/class.uiforms.inc.php Wed Dec 27 18:11:47 2006 @@ -908,22 +908,15 @@ 'recur_type' =3D3D> $edit_content['recur_type'], 'participants' =3D3D> array(), ); - foreach($edit_content['participants'] as $app =3D3D> $ids) - { - if ($app =3D3D=3D3D 'accounts') - { - $content['participants'] +=3D3D $ids; - } - elseif ($ids) - { - foreach($this->bo->resources as $type =3D3D> $data) - { - if ($data['app'] =3D3D=3D3D $app) break; - } - foreach($ids as $id) - { - $content['participants'][] =3D3D $type . $id; - } + foreach($edit_content['participants'] as $key =3D3D> $data) + { + if (is_numeric($key) && !$edit_content['participants']['delete'][$data= =3D ['uid']]) + { + $content['participants'][] =3D3D $data['uid']; + } + elseif ($key =3D3D=3D3D 'account' && $data) + { + $content['participants'][] =3D3D $data; } } // default search parameters |