Date type return type changed : ps
This commit is contained in:
parent
be1925fc51
commit
f58b59bf80
@ -261,8 +261,11 @@ class PD_Model extends SPARQ_Model {
|
||||
}
|
||||
if(($pd_from_date != "" || $pd_from_date != null) && ($pd_to_date != "" || $pd_to_date != null))
|
||||
{
|
||||
// echo " now in model I have date_type ".$date_type." and my return type is ".gettype($date_type)."\n";
|
||||
// echo " now in model I have ".$pd_from_date." and my return type is ".gettype($pd_from_date)."\n";
|
||||
// echo " now in model I have ".$pd_to_date." and my return type is ".gettype($pd_to_date)."\n";
|
||||
// $this->db->where('PDTRIGGER.pd_date_of_initiation BETWEEN ' ."'$pd_from_date'". ' AND ' ."'$pd_to_date'");
|
||||
if((!empty($date_type)) && ($date_type == 2)){
|
||||
if((!empty($date_type)) && ($date_type == "2")){
|
||||
$this->db->where('PDTRIGGER.completed_on BETWEEN ' ."'$pd_from_date'". ' AND ' ."'$pd_to_date'");
|
||||
}else{
|
||||
$this->db->where('PDTRIGGER.pd_date_of_initiation BETWEEN ' ."'$pd_from_date'". ' AND ' ."'$pd_to_date'");
|
||||
@ -327,7 +330,7 @@ class PD_Model extends SPARQ_Model {
|
||||
$this->db->LIMIT($limit,0);
|
||||
|
||||
$result_array = $this->db->GET()->result_array();
|
||||
//print_r($this->db->last_query());die();
|
||||
// print_r($this->db->last_query());die();
|
||||
return $result_array;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user