diff --git a/phpgwapi/inc/class.sbox2.inc.php b/phpgwapi/inc/class.sbox2.inc.php
index bb557bd440..1dffb20d2e 100644
--- a/phpgwapi/inc/class.sbox2.inc.php
+++ b/phpgwapi/inc/class.sbox2.inc.php
@@ -35,6 +35,7 @@
* $id_name id of previosly selected entry
* $content from id (eg. 'company: lastname, givenname' for address $id) if $id != 0, or
* array with searchresult (id's as key), if array is empty if search was unsucsessful
+ * $multipe present a multiple selectable box instead of one selector-button
* Returns: array with vars to set in temaplate, the vars are:
* {doSearchFkt} Javascript Funktion, place somewhere in Template (before rest of the vars)
* {$name.'_title} button with titel $lang_name (if JS) or just $lang_name
@@ -42,11 +43,11 @@
* {$name.'_nojs} searchfield + button if we have no JavaScript, else empty
*
* To use call $template->set_var(getIdSearch( ... ));
- * the template should look like {doSeachFkt}
{XXX_title}
{XXX}
{XXX_nojs}
(XXX is content of $name)
+ * the template should look like {doSearchFkt}
{XXX_title}
{XXX}
{XXX_nojs}
(XXX is content of $name)
* In the submitted page the vars $query_XXX and $id_XXX are set according to what is selected, see getAddress as Example
*/
- function getId($name,$lang_name,$prompt,$id_name,$content='',$note='')
+ function getId($name,$lang_name,$prompt,$id_name,$content='',$note='',$multiple=False)
{
// echo "
getId('$name','$lang_name','$prompt',$id_name,'$content') =";
$ret['doSearchFkt'] =
@@ -80,7 +81,14 @@
else
{
$ret[$name.'_OK'] = ''; // flag we have something so select
- $ret[$name] = "