bugphpGroupWare - Bugs: bug #5238, records are displayed wrong

 
 

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

bug #5238: records are displayed wrong

Submitted by:  Bettina Gille <ceb>
Submitted on:  Thu 11 Sep 2003 10:58:16 PM UTC  
 
Item Group: SVN trunk (dev code)Category: addressbook
Severity: 3 - NormalPriority: 5 - Normal
Status: FixedPrivacy: Public
Assigned to: Jonathan Rivera <jarg>Open/Closed: Closed
Component Version: SVNOperating System: None
Reproducibility: NonePlanned Release: None
Fixed Release: 

Tue 02 Mar 2004 08:24:58 PM UTC, comment #4:

heya, well, mm, yes, i had an error here, but the solution is not the count to the array, so the problem is in the query.

please read my email with subject "Search addressbook, new approach" for more info.

thanks anyway for your test and your patch.

Jonathan Rivera <jarg>In charge of this item.
Tue 02 Mar 2004 01:23:17 PM UTC, comment #3:

I still get such a output like "1 - 2 of 1 Persons" and
find the cause:

In class.boaddressbook.inc.php -> method get_persons()
The foreach in line 251 copies a dataset in the person array. The problem starts here! Each address is an own dataset. So for a contact with two address there are two datasets. This number is saved in $this->so->contacts->total_records and given to $this->total (used for display).

Because of the $persons[$data['contact_id']] = $data; the person array contains only one dataset for an contact_id (if more exists the last dataset is saved, previouse datasets would be replaced). Thats okay because only one address is displayed in addressbook view.
The count of person array is the correct number for the displayed contacts.

Dirk Schaller <dschaller>
Sun 14 Sep 2003 03:39:32 AM UTC, comment #2:

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>In charge of this item.
Fri 12 Sep 2003 11:13:05 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>In charge of this item.
Thu 11 Sep 2003 10:58:16 PM UTC, original submission:

the records are displayed wrong. also the expression user account isnt right for a normal contact(person or company) in addressbook.

1 - 6 of 5 user accounts*

Bettina Gille <ceb>
Project Administrator

 

Attached Files
file #1098:  class.boaddressbook.inc.php.patch added by dschaller (631B - application/octet-stream - Patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 6 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 02 Mar 2004 08:24:58 PM UTCjargOpen/ClosedOpen=>Closed
Tue 02 Mar 2004 01:23:17 PM UTCdschallerItem Group0.9.16RC1=>SVN trunk (dev code)
  Open/ClosedClosed=>Open
  Attached File-=>Added class.boaddressbook.inc.php.patch, #1079
Sun 14 Sep 2003 03:39:51 AM UTCjargOpen/ClosedOpen=>(Error - Not Found)
Fri 12 Sep 2003 11:13:04 PM UTCjargStatusNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1