// Date Range picker improvements
This commit is contained in:
@@ -135,16 +135,16 @@ class EmployeeCore extends ObjectModel
|
||||
public function getFields()
|
||||
{
|
||||
if (empty($this->stats_date_from))
|
||||
$this->stats_date_from = date('Y-m-d 00:00:00');
|
||||
$this->stats_date_from = date('Y-m-d 00:00:00', strtotime("-1 month"));
|
||||
|
||||
if (empty($this->stats_compare_from))
|
||||
$this->stats_compare_from = date('Y-m-d 00:00:00');
|
||||
if (empty($this->stats_compare_from) || $this->stats_compare_from == '0000-00-00')
|
||||
$this->stats_compare_from = null;
|
||||
|
||||
if (empty($this->stats_date_to))
|
||||
$this->stats_date_to = date('Y-m-d 23:59:59');
|
||||
|
||||
if (empty($this->stats_compare_to))
|
||||
$this->stats_compare_to = date('Y-m-d 00:00:00');
|
||||
if (empty($this->stats_compare_to) || $this->stats_compare_to == '0000-00-00')
|
||||
$this->stats_compare_to = null;
|
||||
|
||||
return parent::getFields();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user