Send category options - header doesn't use a template, so they have to be passed

This commit is contained in:
Nathan Gray 2011-10-03 14:56:20 +00:00
parent 8f9db8e353
commit c230e5f99a

View File

@ -98,6 +98,13 @@ class etemplate_widget_nextmatch extends etemplate_widget
$value['num_rows'] = self::INITIAL_ROWS;
$value['rows'] = array();
$value['total'] = self::call_get_rows($value, $value['rows'], self::$request->readonlys);
// Send categories
if(!$value['no_cat'] && !$value['cat_is_select'])
{
$cat_app = $value['cat_app'] ? $value['cat_app'] : '';
$value['options-cat_id'] = etemplate_widget_menupopup::typeOptions('select-cat', ',,'.$cat_app,$no_lang,false,$value['cat_id']);
}
// todo: no need to store rows in request, it's enought to send them to client
error_log(__METHOD__."() $this: total=$value[total]");