[dev] Yet another Turba IMSP driver patch

Michael Rubinsky mike at theupstairsroom.com
Sat Oct 9 18:45:39 PDT 2004


Another small patch to fix a bug that prevented a newly added contact from 
displaying on the 'successfully added entry' page. (An error saying you do 
not have permissions to view this object was displayed instead.)  This 
patch corrects this...



Thanks -
Mike 
-------------- next part --------------
Index: imsp.php
===================================================================
RCS file: /repository/turba/lib/Driver/imsp.php,v
retrieving revision 1.17
diff -r1.17 imsp.php
98a99
>  
158a160
> 
272c274
<                 $result = $this->read('name', $members, array('email'));
---
>                 $result = $this->_read('name', $members, array('email'));
281,285c283,287
< 
<         unset($attributes['__members']);
<         unset($attributes['__type']);
<         unset($attributes['fullname']);
<         return $this->_imsp->addEntry($this->_bookName, $attributes);
---
>         $imspAttributes = $attributes;
>         unset($imspAttributes['__members']);
>         unset($imspAttributes['__type']);
>         unset($imspAttributes['fullname']);
>         return $this->_imsp->addEntry($this->_bookName, $imspAttributes);


More information about the dev mailing list