phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-users] Re: cannot edit/view Addressbook ?


From: Dave Hall
Subject: Re: [Phpgroupware-users] Re: cannot edit/view Addressbook ?
Date: Thu, 03 Oct 2002 01:27:09 +1000

Hey Philip,

Apparently this has already been fixed in cvs.  Could you try running a
cvs update on an unpatched version of phpgroupware using the following
commands:

cd /path/to/phpgroupware
cvs -z3 update -Pd

If the cvs update does it fix it could you please post a patch to
savannah.  See http://docs.phpgroupware.org/patches.php for more info. 
This way the right people will see it.

Thanks again

skwashd

address@hidden wrote:
 
> On Tue, 01 Oct 2002 18:34:56 +0200, 
> "me" == p lijnzaad <address@hidden> wrote:
> 
> me> [error] PHP Fatal error:  Unsupported operand types in 
> me>    /foobar/phpgroupwar
> OK, 
> 
> it turns out that the $customfields variable in said file may be 
> NULL. Below
> is a patch. Kind regards,
> 
>                                                                   
>   Philip
> 
> PS: I failed to receive Ian Firla's reply that my unsubscribed
>    but CC-ed colleague Patrick did (thanks, but it didn't seem to 
> help. You
>    have the same phpgw version that I have, or at least so would 
> the version
>    numbers suggest). It looks like Mailman's digest option 
> doesn't work. Or
>    maybe there has not been enough traffic for a digest to be 
> sent around. I
>    now switched to direct delivery.
> 
> 
Index: class.uiaddressbook.inc.php
===================================================================
RCS file: 
/usr/local/nfs_prog/cvsroot/phpgroupware/addressbook/inc/class.uiaddressbook.inc.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -c -r1.1.1.1 -r1.2
*** class.uiaddressbook.inc.php 8 Jul 2002 07:47:52 -0000       1.1.1.1
--- class.uiaddressbook.inc.php 2 Oct 2002 10:13:29 -0000       1.2
***************
*** 11,17 ****
    *  option) any later version.                                              *
    \**************************************************************************/
  
!   /* $Id: class.uiaddressbook.inc.php,v 1.1.1.1 2002/07/08 07:47:52 philip 
Exp $ */
  
        class uiaddressbook
        {
--- 11,17 ----
    *  option) any later version.                                              *
    \**************************************************************************/
  
!   /* $Id: class.uiaddressbook.inc.php,v 1.2 2002/10/02 10:13:29 philip Exp $ 
*/
  
        class uiaddressbook
        {
***************
*** 678,684 ****
                        }
  
                        /* merge in extra fields */
!                       $qfields = $this->contacts->stock_contact_fields + 
$this->extrafields + $customfields;
                        $fields = $this->bo->read_entry(array('id' => 
$GLOBALS['HTTP_GET_VARS']['ab_id'], 'fields' => $qfields));
                        
$this->addressbook_form('edit','menuaction=addressbook.uiaddressbook.edit',lang('Edit'),$fields[0],$customfields);
  
--- 678,689 ----
                        }
  
                        /* merge in extra fields */
! #@                    $qfields = $this->contacts->stock_contact_fields + 
$this->extrafields + $customfields;
!                       $qfields = $this->contacts->stock_contact_fields;
!                         if ($this->extrafields != null) { $qfields += 
$this->extrafields; } 
!                         if ($customfields != null) { $qfields += 
$customfields; } 
! 
! 
                        $fields = $this->bo->read_entry(array('id' => 
$GLOBALS['HTTP_GET_VARS']['ab_id'], 'fields' => $qfields));
                        
$this->addressbook_form('edit','menuaction=addressbook.uiaddressbook.edit',lang('Edit'),$fields[0],$customfields);
  
***************
*** 818,824 ****
                        }
  
                        /* merge in extra fields */
!                       $qfields = $this->contacts->stock_contact_fields + 
$this->extrafields + $customfields;
  
                        $fields = $this->bo->read_entry(array('id' => $ab_id, 
'fields' => $qfields));
  
--- 823,832 ----
                        }
  
                        /* merge in extra fields */
! #@                    $qfields = $this->contacts->stock_contact_fields + 
$this->extrafields + $customfields;
!                       $qfields = $this->contacts->stock_contact_fields;
!                         if ($this->extrafields != null) { $qfields += 
$this->extrafields; } 
!                         if ($customfields != null) { $qfields += 
$customfields; } 
  
                        $fields = $this->bo->read_entry(array('id' => $ab_id, 
'fields' => $qfields));
  

-- 
Philip Lijnzaad
Genomics Laboratory
Dept. of Biomedical Genetics
University Medical Center (UMC), Utrecht
Stratenum, STR 3.223
P.O. Box 85060, 3508 AB Utrecht
(Universiteitsweg 100, 3584 CG Utrecht)
The Netherlands
tel: +31 (0)30 253 8464
fax: +31 (0)30 253 9035

Attachment: dave.hall.vcf
Description: Card for <dave.hall@mbox.com.au>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]