* Fix date field with null.
This commit is contained in:
@@ -32,6 +32,8 @@ class count_of_annual_created_story extends baseCalc
|
||||
{
|
||||
$openedDate = $data->openedDate;
|
||||
|
||||
if(empty($openedDate)) return;
|
||||
|
||||
$year = substr($openedDate, 0, 4);
|
||||
|
||||
if($year == '0000') return;
|
||||
|
||||
@@ -34,6 +34,8 @@ class count_of_annual_finished_story extends baseCalc
|
||||
$closedDate = $data->closedDate;
|
||||
$closedReason = $data->closedReason;
|
||||
|
||||
if(empty($closedDate)) return;
|
||||
|
||||
$year = substr($closedDate, 0, 4);
|
||||
|
||||
if($year == '0000' || $closedReason != 'done') return;
|
||||
|
||||
@@ -32,6 +32,8 @@ class count_of_monthly_created_story extends baseCalc
|
||||
{
|
||||
$openedDate = $data->openedDate;
|
||||
|
||||
if(empty($openedDate)) return;
|
||||
|
||||
$year = substr($openedDate, 0, 4);
|
||||
$month = substr($openedDate, 5, 2);
|
||||
|
||||
|
||||
@@ -34,6 +34,8 @@ class count_of_monthly_finished_story extends baseCalc
|
||||
$closedDate = $data->closedDate;
|
||||
$closedReason = $data->closedReason;
|
||||
|
||||
if(empty($closedDate)) return;
|
||||
|
||||
$year = substr($closedDate, 0, 4);
|
||||
$month = substr($closedDate, 5, 2);
|
||||
|
||||
|
||||
@@ -34,6 +34,8 @@ class count_of_annual_closed_feedback_in_product extends baseCalc
|
||||
$product = $data->product;
|
||||
$closedDate = $data->closedDate;
|
||||
|
||||
if(empty($closedDate)) return;
|
||||
|
||||
$year = substr($closedDate, 0, 4);
|
||||
|
||||
if($year == '0000') return;
|
||||
|
||||
@@ -34,6 +34,8 @@ class count_of_annual_created_feedback_in_product extends baseCalc
|
||||
$product = $data->product;
|
||||
$openedDate = $data->openedDate;
|
||||
|
||||
if(empty($openedDate)) return;
|
||||
|
||||
$year = substr($openedDate, 0, 4);
|
||||
|
||||
if($year == '0000') return;
|
||||
|
||||
@@ -35,6 +35,8 @@ class count_of_annual_created_requirement_in_product extends baseCalc
|
||||
$type = $data->type;
|
||||
$openedDate = $data->openedDate;
|
||||
|
||||
if(empty($openedDate)) return;
|
||||
|
||||
$year = substr($openedDate, 0, 4);
|
||||
if($year == '0000') return;
|
||||
|
||||
|
||||
@@ -32,6 +32,8 @@ class count_of_annual_created_story_in_product extends baseCalc
|
||||
$product = $row->product;
|
||||
$openedDate = $row->openedDate;
|
||||
|
||||
if(empty($openedDate)) return;
|
||||
|
||||
$year = substr($openedDate, 0, 4);
|
||||
|
||||
if(empty($year) || $year == '0000') return;
|
||||
|
||||
@@ -34,6 +34,8 @@ class count_of_annual_finished_story_in_product extends baseCalc
|
||||
$product = $row->product;
|
||||
$closedDate = $row->closedDate;
|
||||
|
||||
if(empty($closedDate)) return;
|
||||
|
||||
$year = substr($closedDate, 0, 4);
|
||||
|
||||
if(empty($year) || $year == '0000') return;
|
||||
|
||||
@@ -34,6 +34,8 @@ class count_of_monthly_closed_story_in_product extends baseCalc
|
||||
$product = $data->product;
|
||||
$closedDate = $data->closedDate;
|
||||
|
||||
if(empty($closedDate)) return;
|
||||
|
||||
$year = substr($closedDate, 0, 4);
|
||||
$month = substr($closedDate, 5, 2);
|
||||
|
||||
|
||||
@@ -34,6 +34,8 @@ class count_of_monthly_created_story_in_product extends baseCalc
|
||||
$product = $data->product;
|
||||
$openedDate = $data->openedDate;
|
||||
|
||||
if(empty($openedDate)) return;
|
||||
|
||||
$year = substr($openedDate, 0, 4);
|
||||
$month = substr($openedDate, 5, 2);
|
||||
|
||||
|
||||
@@ -32,6 +32,8 @@ class count_of_monthly_finished_story_in_product extends baseCalc
|
||||
$product = $row->product;
|
||||
$closedDate = $row->closedDate;
|
||||
|
||||
if(empty($closedDate)) return;
|
||||
|
||||
$year = substr($closedDate, 0, 4);
|
||||
$month = substr($closedDate, 5, 2);
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@ class scale_of_annual_closed_story_in_product extends baseCalc
|
||||
$closedDate = $data->closedDate;
|
||||
$estimate = $data->estimate;
|
||||
|
||||
if(empty($closedDate)) return;
|
||||
|
||||
$year = substr($closedDate, 0, 4);
|
||||
|
||||
if($year == '0000') return;
|
||||
|
||||
@@ -36,6 +36,8 @@ class scale_of_annual_finished_story_in_product extends baseCalc
|
||||
$closedReason = $data->closedReason;
|
||||
$estimate = $data->estimate;
|
||||
|
||||
if(empty($closedDate)) return;
|
||||
|
||||
$year = substr($closedDate, 0, 4);
|
||||
|
||||
if($year == '0000') return;
|
||||
|
||||
Reference in New Issue
Block a user