* fix a bug for no init object.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Open daily reminder.*/
|
||||
$config->report->dailyreminder = new stdclass();
|
||||
$config->report->dailyreminder->bug = true;
|
||||
$config->report->dailyreminder->task = true;
|
||||
$config->report->dailyreminder->todo = true;
|
||||
|
||||
@@ -76,6 +76,7 @@ $lang->report->bugTitle = 'Bug标题';
|
||||
$lang->report->taskName = '任务名称';
|
||||
$lang->report->todoName = 'Todo名称';
|
||||
|
||||
$lang->report->mailtitle = new stdclass();
|
||||
$lang->report->mailtitle->begin = '提醒:您有';
|
||||
$lang->report->mailtitle->bug = " Bugs(%s),";
|
||||
$lang->report->mailtitle->task = " 任务(%s),";
|
||||
|
||||
@@ -375,6 +375,7 @@ class storyModel extends model
|
||||
{
|
||||
$oldStory = $this->getById($storyID);
|
||||
|
||||
$story = new stdclass();
|
||||
$story->lastEditedBy = $this->app->user->account;
|
||||
$story->lastEditedDate = $now;
|
||||
$story->status = $oldStory->status;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<form method='post' enctype='multipart/form-data'>
|
||||
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
|
||||
<table align='center' class='table-1 fixed'>
|
||||
<caption><?php echo $lang->story->product . $lang->colon . $lang->story->batchCreate;?></caption>
|
||||
<tr>
|
||||
|
||||
@@ -119,7 +119,7 @@ class task extends control
|
||||
foreach($mails as $mail)
|
||||
{
|
||||
$this->sendmail($mail->taskID, $mail->actionID);
|
||||
}
|
||||
}
|
||||
|
||||
/* Locate the browser. */
|
||||
if($iframe) die(js::reload('parent.parent'));
|
||||
|
||||
@@ -129,7 +129,9 @@ class taskModel extends model
|
||||
$taskID = $this->dao->lastInsertID();
|
||||
if($tasks->story[$i] != false) $this->story->setStage($tasks->story[$i]);
|
||||
$actionID = $this->action->create('task', $taskID, 'Opened', '');
|
||||
$mails[$i]->taskID = $taskID;
|
||||
|
||||
$mails[$i] = new stdclass();
|
||||
$mails[$i]->taskID = $taskID;
|
||||
$mails[$i]->actionID = $actionID;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<?php js::set('batchCreateNum', $config->task->batchCreate);?>
|
||||
<form method='post'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1 fixed'>
|
||||
<caption><?php echo $lang->task->project . $lang->colon . $lang->task->batchCreate;?></caption>
|
||||
<tr>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<?php js::set('testcaseBatchCreateNum', $config->testcase->batchCreate);?>
|
||||
<form method='post' enctype='multipart/form-data'>
|
||||
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
|
||||
<table align='center' class='table-1 fixed'>
|
||||
<caption><?php echo $lang->testcase->batchCreate;?></caption>
|
||||
<tr>
|
||||
|
||||
@@ -58,6 +58,7 @@ class todoModel extends model
|
||||
{
|
||||
if($todos->names[$i] != '' || isset($todos->bugs[$i + 1]) || isset($todos->tasks[$i + 1]))
|
||||
{
|
||||
$todo = new stdclass();
|
||||
$todo->account = $this->app->user->account;
|
||||
if($this->post->date == false)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<form method='post'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1' >
|
||||
<caption> <?php echo $lang->todo->batchCreate . $lang->colon . html::input('date', $date, "class='select-2 date' onchange='updateAction(this.value)'");?>
|
||||
<input type='checkbox' id='switchDate' onclick='switchDateTodo(this);'> <?php echo $lang->todo->periods['future'];?></caption>
|
||||
|
||||
Reference in New Issue
Block a user