* fix a bug for no init object.

This commit is contained in:
wangyidong
2013-02-21 09:44:35 +00:00
parent eeb7ab4736
commit 846c174d7b
10 changed files with 12 additions and 6 deletions

View File

@@ -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;

View File

@@ -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),";

View File

@@ -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;

View File

@@ -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>

View File

@@ -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'));

View File

@@ -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

View File

@@ -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>

View File

@@ -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>

View File

@@ -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)
{

View File

@@ -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>