mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-15 18:38:57 +01:00
fixed not working orga-view: total is no longer a reference to somain->total, so it needs to be set manualy
This commit is contained in:
parent
91cd07d611
commit
9d3d376d47
@ -662,8 +662,11 @@ class socontacts
|
|||||||
*/
|
*/
|
||||||
function organisations($param)
|
function organisations($param)
|
||||||
{
|
{
|
||||||
if (!method_exists($this->somain,'organisations')) return false;
|
if (!method_exists($this->somain,'organisations'))
|
||||||
|
{
|
||||||
|
$this->total = 0;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if ($param['search'] && !is_array($param['search']))
|
if ($param['search'] && !is_array($param['search']))
|
||||||
{
|
{
|
||||||
$search = $param['search'];
|
$search = $param['search'];
|
||||||
@ -678,6 +681,7 @@ class socontacts
|
|||||||
$param['search'] = $this->data2db($param['search']);
|
$param['search'] = $this->data2db($param['search']);
|
||||||
}
|
}
|
||||||
$rows = $this->somain->organisations($param);
|
$rows = $this->somain->organisations($param);
|
||||||
|
$this->total = $this->somain->total;
|
||||||
//echo "<p>socontacts::organisations(".print_r($param,true).")<br />".$this->somain->db->Query_ID->sql."</p>\n";
|
//echo "<p>socontacts::organisations(".print_r($param,true).")<br />".$this->somain->db->Query_ID->sql."</p>\n";
|
||||||
|
|
||||||
if (!$rows) return array();
|
if (!$rows) return array();
|
||||||
|
Loading…
Reference in New Issue
Block a user