issue 2906 regdate order modify

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12677 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2013-02-04 05:56:17 +00:00
parent bcd25591d1
commit bb9170af36

View file

@ -236,7 +236,14 @@ class content extends WidgetHandler
$obj->module_srl = $args->module_srl;
$obj->category_srl = $args->category_srl;
$obj->sort_index = $args->order_target;
if($args->order_target == 'list_order' || $args->order_target == 'update_order')
{
$obj->order_type = $args->order_type=="desc"?"asc":"desc";
}
else
{
$obj->order_type = $args->order_type=="desc"?"desc":"asc";
}
$obj->list_count = $args->list_count * $args->page_count;
$obj->statusList = array('PUBLIC');
$output = executeQueryArray('widgets.content.getNewestDocuments', $obj);