* finish task#794.
This commit is contained in:
@@ -774,6 +774,7 @@ class bug extends control
|
||||
if(strtolower($action->action) == 'opened') $action->comment = $bug->steps;
|
||||
|
||||
/* Create the mail content. */
|
||||
if($action->action == 'opened') $action->comment = '';
|
||||
$this->view->bug = $bug;
|
||||
$this->view->action = $action;
|
||||
$mailContent = $this->parse($this->moduleName, 'sendmail');
|
||||
|
||||
@@ -16,6 +16,22 @@
|
||||
BUG #<?php echo $bug->id . "=>$bug->assignedTo " . html::a(common::getSysURL() . $this->createLink('bug', 'view', "bugID=$bug->id"), $bug->title);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->bug->legendSteps;?></legend>
|
||||
<div class='content'>
|
||||
<?php
|
||||
if(strpos($bug->steps, '<img src="data/upload'))
|
||||
{
|
||||
$bug->steps = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $bug->steps);
|
||||
}
|
||||
echo $bug->steps;
|
||||
?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php include '../../common/view/mail.html.php';?></td>
|
||||
</tr>
|
||||
|
||||
@@ -16,6 +16,22 @@
|
||||
TASK #<?php echo $task->id . "=>$task->assignedTo " . html::a(common::getSysURL() . $this->createLink('task', 'view', "taskID=$task->id"), $task->name);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->task->legendDesc;?></legend>
|
||||
<div class='content'>
|
||||
<?php
|
||||
if(strpos($task->desc, '<img src="data/upload'))
|
||||
{
|
||||
$task->desc = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $task->desc);
|
||||
}
|
||||
echo $task->desc;
|
||||
?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php include '../../common/view/mail.html.php';?></td>
|
||||
</tr>
|
||||
|
||||
@@ -604,6 +604,7 @@ class story extends control
|
||||
}
|
||||
|
||||
/* Get the mail content. */
|
||||
if($action->action == 'opened') $action->comment = '';
|
||||
$this->view->story = $story;
|
||||
$this->view->action = $action;
|
||||
$this->view->users = $this->user->getPairs('noletter');
|
||||
|
||||
@@ -16,6 +16,22 @@
|
||||
STORY #<?php echo $story->id . "=>$story->assignedTo " . html::a(common::getSysURL() . $this->createLink('story', 'view', "storyID=$story->id"), $story->title);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendSpec;?></legend>
|
||||
<div class='content'>
|
||||
<?php
|
||||
if(strpos($story->spec, '<img src="data/upload'))
|
||||
{
|
||||
$story->spec = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $story->spec);
|
||||
}
|
||||
echo $story->spec;
|
||||
?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php include '../../common/view/mail.html.php';?></td>
|
||||
</tr>
|
||||
|
||||
@@ -16,6 +16,22 @@
|
||||
TASK #<?php echo $task->id . "=>$task->assignedTo " . html::a(common::getSysURL() . $this->createLink('task', 'view', "taskID=$task->id"), $task->name);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->task->legendDesc;?></legend>
|
||||
<div class='content'>
|
||||
<?php
|
||||
if(strpos($task->desc, '<img src="data/upload'))
|
||||
{
|
||||
$task->desc = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $task->desc);
|
||||
}
|
||||
echo $task->desc;
|
||||
?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php include '../../common/view/mail.html.php';?></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user