7 Apr 21:24
legalcase/inc inc_obj_client.php,1.18,1.19
From: Mathieu Lutfy <mlutfy <at> users.sourceforge.net>
Subject: legalcase/inc inc_obj_client.php,1.18,1.19
Newsgroups: gmane.comp.crm.lcm.cvs
Date: 2008-04-07 19:25:38 GMT
Subject: legalcase/inc inc_obj_client.php,1.18,1.19
Newsgroups: gmane.comp.crm.lcm.cvs
Date: 2008-04-07 19:25:38 GMT
Update of /cvsroot/legalcase/legalcase/inc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5481
Modified Files:
inc_obj_client.php
Log Message:
fix for list of cases
Index: inc_obj_client.php
===================================================================
RCS file: /cvsroot/legalcase/legalcase/inc/inc_obj_client.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** inc_obj_client.php 1 Feb 2008 20:40:58 -0000 1.18
--- inc_obj_client.php 7 Apr 2008 19:25:31 -0000 1.19
***************
*** 136,142 ****
$ret = array_shift($this->cases);
! if ($this->getCaseDone())
$this->loadCases($this->case_start_from + $prefs['page_rows']);
return $ret;
--- 136,147 ----
$ret = array_shift($this->cases);
+ $this->case_start_from++;
! if ($this->getCaseDone()) {
! lcm_debug('not done, reloading: ' . count($this->cases));
$this->loadCases($this->case_start_from + $prefs['page_rows']);
+ }
+
+ lcm_debug("getCaseIterator " . count($this->cases));
return $ret;
***************
*** 412,415 ****
--- 417,422 ----
function printCases($find_case_string = '') {
+ global $prefs;
+
$cpt = 0;
$my_list_pos = intval(_request('list_pos', 0));
***************
*** 420,424 ****
show_listcase_start();
! for ($cpt = 0, $this->getCaseStart(); (! $this->getCaseDone()); $cpt++) {
$item = $this->getCaseIterator();
show_listcase_item($item, $cpt, $find_case_string, 'javascript:;', 'onclick="getCaseInfo(' .
$item['id_case'] . ')"');
--- 427,431 ----
show_listcase_start();
! for ($cpt = 0, $this->getCaseStart(); (! $this->getCaseDone()) && ($cpt < $prefs['page_rows']);
$cpt++) {
$item = $this->getCaseIterator();
show_listcase_item($item, $cpt, $find_case_string, 'javascript:;', 'onclick="getCaseInfo(' .
$item['id_case'] . ')"');
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
RSS Feed