bugphpGroupWare - Bugs: bug #14130, Contact info doesn't get added in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14130: Contact info doesn't get added in php5, generates a warning

Submitter:  Charles Martin <cafefroid>
Submitted:  Mon 15 Aug 2005 03:00:30 PM UTC
   
 
Category:  addressbook Item Group:  None
Severity:  3 - Normal Priority:  5 - Normal
Status:  Fixed Privacy:  Public
Assigned to:  jarg Open/Closed:  Closed
Component Version:  None Operating System:  None
Reproducibility:  Every Time Planned Release:  None
Fixed Release: 

Wed 07 Dec 2005 12:06:08 PM UTC, comment #2: 

Related patch #4331 applied - closing

Dave Hall <skwashd>
Group administrator
Fri 19 Aug 2005 07:50:25 PM UTC, comment #1: 

This has been corrected in CVS.

To grab a complete update of all fixes:

1)  Check to see if you have cvs installed: 'cvs --help'.
1a) If not, install a copy of cvs-cli from your favorite
distro.

2)  Then just type:
    'cd <your phpgroupware dir>; cvs update -dP'.

You can do step 2 as many times in a day as you wish, and
will always get the most current bug fixes.

Thanks,

Jonathan Rivera <jarg>
Mon 15 Aug 2005 03:00:30 PM UTC, original submission:  

class.soaddressbook.inc.php generates a warning when first adding a contact in the addressbook and the info doesn't get added to the record. Once the record is added, it can be modified correctly.

Fix :

class.soaddressbook.inc.php, line 612
$principal = array_merge($fields['tab_person_data'], $fields['tab_extra']);

Prefix that line with something like :
if (!(is_array($fields['tab_person_data']))){
    $fields['tab_person_data'] = (array)$fields['tab_person_data'];
}

if (!(is_array($fields['tab_extra']))){
    $fields['tab_extra'] = (array)$fields['tab_extra'];
}

To make sure both params are arrays

Charles Martin <cafefroid>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-12-07 skwashd Open/ClosedOpen Closed
2005-08-19 jarg StatusNone Fixed
2005-08-16 skwashd Assigned toNone jarg
    Carbon-Copy- Added lex@phpgroupware
2005-08-15 cafefroid Carbon-Copy- Added cafefroid

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code