* fix bug #1002.
This commit is contained in:
@@ -145,8 +145,7 @@ class product extends control
|
||||
setcookie('productStoryOrder', $orderBy, $this->config->cookieLife, $this->config->webRoot);
|
||||
|
||||
/* Append id for secend sort. */
|
||||
/* set rule to number when order by plan. */
|
||||
$sort = $this->loadModel('common')->appendOrder(strpos($orderBy, 'plan') !== false ? str_replace('plan', '`plan`+0', $orderBy) : $orderBy);
|
||||
$sort = $this->loadModel('common')->appendOrder($orderBy);
|
||||
|
||||
/* Load pager. */
|
||||
$this->app->loadClass('pager', $static = true);
|
||||
|
||||
@@ -33,5 +33,5 @@ function computeEndDate(delta)
|
||||
}
|
||||
|
||||
endDate = beginDate.addDays(delta - 1).toString('yyyy-MM-dd');
|
||||
$('#end').val(endDate);
|
||||
$('#end').val(endDate).datetimepicker('update')
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ function computeEndDate(delta)
|
||||
}
|
||||
|
||||
endDate = beginDate.addDays(delta - 1).toString('yyyy-MM-dd');
|
||||
$('#end').val(endDate);
|
||||
$('#end').val(endDate).datetimepicker('update');
|
||||
computeWorkDays();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user