* fix php error in tutorial mode.
This commit is contained in:
+28
-22
@@ -65,6 +65,7 @@ class tutorialModel extends model
|
||||
$product->id = 1;
|
||||
$product->program = 0;
|
||||
$product->line = 0;
|
||||
$product->plan = 0;
|
||||
$product->name = 'Test product';
|
||||
$product->code = 'test';
|
||||
$product->type = 'normal';
|
||||
@@ -79,6 +80,7 @@ class tutorialModel extends model
|
||||
$product->createdVersion = '8.1.3';
|
||||
$product->order = 10;
|
||||
$product->deleted = '0';
|
||||
$product->branch = '';
|
||||
|
||||
return $product;
|
||||
}
|
||||
@@ -247,28 +249,32 @@ class tutorialModel extends model
|
||||
public function getExecution()
|
||||
{
|
||||
$execution = new stdclass();
|
||||
$execution->id = 3;
|
||||
$execution->project = 2;
|
||||
$execution->type = 'sprint';
|
||||
$execution->name = 'Test execution';
|
||||
$execution->code = 'test';
|
||||
$execution->lifetime = '';
|
||||
$execution->begin = date('Y-m-d', strtotime('-7 days'));
|
||||
$execution->end = date('Y-m-d', strtotime('+7 days'));
|
||||
$execution->days = 10;
|
||||
$execution->status = 'wait';
|
||||
$execution->pri = '1';
|
||||
$execution->desc = '';
|
||||
$execution->goal = '';
|
||||
$execution->acl = 'open';
|
||||
$execution->parent = 2;
|
||||
$execution->path = ',2,3,';
|
||||
$execution->grade = 1;
|
||||
$execution->PM = $this->app->user->account;
|
||||
$execution->PO = $this->app->user->account;
|
||||
$execution->QD = $this->app->user->account;
|
||||
$execution->RD = $this->app->user->account;
|
||||
$execution->deleted = '0';
|
||||
$execution->id = 3;
|
||||
$execution->project = 2;
|
||||
$execution->type = 'sprint';
|
||||
$execution->name = 'Test execution';
|
||||
$execution->code = 'test';
|
||||
$execution->lifetime = '';
|
||||
$execution->begin = date('Y-m-d', strtotime('-7 days'));
|
||||
$execution->end = date('Y-m-d', strtotime('+7 days'));
|
||||
$execution->days = 10;
|
||||
$execution->status = 'wait';
|
||||
$execution->pri = '1';
|
||||
$execution->desc = '';
|
||||
$execution->goal = '';
|
||||
$execution->acl = 'open';
|
||||
$execution->parent = 2;
|
||||
$execution->path = ',2,3,';
|
||||
$execution->grade = 1;
|
||||
$execution->PM = $this->app->user->account;
|
||||
$execution->PO = $this->app->user->account;
|
||||
$execution->QD = $this->app->user->account;
|
||||
$execution->RD = $this->app->user->account;
|
||||
$execution->deleted = '0';
|
||||
$execution->totalConsumed = 0;
|
||||
$execution->totalLeft = 0;
|
||||
$execution->totalHours = 0;
|
||||
$execution->totalEstimate = 0;
|
||||
return $execution;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user