mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
Make sure we get updated get_rows query in all cases
This commit is contained in:
parent
ee440ce548
commit
128d8ce29c
@ -98,12 +98,17 @@ class etemplate_widget_nextmatch extends etemplate_widget
|
|||||||
{
|
{
|
||||||
$attrs = $this->attrs;
|
$attrs = $this->attrs;
|
||||||
$form_name = self::form_name($cname, $this->id, $expand);
|
$form_name = self::form_name($cname, $this->id, $expand);
|
||||||
$value =& self::get_array(self::$request->content, $form_name, true);
|
$value = self::get_array(self::$request->content, $form_name, true);
|
||||||
|
|
||||||
$value['start'] = 0;
|
$value['start'] = 0;
|
||||||
$value['num_rows'] = self::INITIAL_ROWS;
|
$value['num_rows'] = self::INITIAL_ROWS;
|
||||||
$value['rows'] = array();
|
$value['rows'] = array();
|
||||||
$value['total'] = self::call_get_rows($value, $value['rows'], self::$request->readonlys);
|
|
||||||
|
$send_value = $value;
|
||||||
|
$total = self::call_get_rows($send_value, $send_value['rows'], self::$request->readonlys);
|
||||||
|
$value =& self::get_array(self::$request->content, $form_name, true);
|
||||||
|
$value = $send_value;
|
||||||
|
$value['total'] = $total;
|
||||||
|
|
||||||
// Send categories
|
// Send categories
|
||||||
if(!$value['no_cat'] && !$value['cat_is_select'])
|
if(!$value['no_cat'] && !$value['cat_is_select'])
|
||||||
@ -134,6 +139,11 @@ class etemplate_widget_nextmatch extends etemplate_widget
|
|||||||
//unset($value[$name]);
|
//unset($value[$name]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if($value['rows']['sel_options'])
|
||||||
|
{
|
||||||
|
self::$request->sel_options = array_merge(self::$request->sel_options,$value['rows']['sel_options']);
|
||||||
|
unset($value['rows']['sel_options']);
|
||||||
|
}
|
||||||
|
|
||||||
// todo: no need to store rows in request, it's enought to send them to client
|
// todo: no need to store rows in request, it's enought to send them to client
|
||||||
|
|
||||||
@ -370,7 +380,7 @@ class etemplate_widget_nextmatch extends etemplate_widget
|
|||||||
if (is_null($first)) $first = $n;
|
if (is_null($first)) $first = $n;
|
||||||
$rows[$n-$first+$value['start']] = $row;
|
$rows[$n-$first+$value['start']] = $row;
|
||||||
}
|
}
|
||||||
elseif(!is_null($first)) // rows with string-keys, after numeric rows
|
elseif(!is_numeric($n)) // rows with string-keys, after numeric rows
|
||||||
{
|
{
|
||||||
$rows[$n] = $row;
|
$rows[$n] = $row;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user