* [task#137480,doing,2h] log feedback actions.
This commit is contained in:
@@ -510,7 +510,7 @@ class bugModel extends model
|
||||
if($changes) $this->action->logHistory($actionID, $changes);
|
||||
|
||||
/* If the edition is not pms, update feedback. */
|
||||
if($this->config->edition != 'open' && $oldBug->feedback) $this->loadModel('feedback')->updateStatus('bug', $oldBug->feedback, $bug->status, $oldBug->status);
|
||||
if($this->config->edition != 'open' && $oldBug->feedback) $this->loadModel('feedback')->updateStatus('bug', $oldBug->feedback, $bug->status, $oldBug->status, $oldBug->id);
|
||||
|
||||
return !dao::isError();
|
||||
}
|
||||
@@ -608,7 +608,7 @@ class bugModel extends model
|
||||
if(isset($kanbanParams['toColID'])) $this->kanban->moveCard($bug->id, $kanbanParams['fromColID'], $kanbanParams['toColID'], $kanbanParams['fromLaneID'], $kanbanParams['toLaneID']);
|
||||
}
|
||||
|
||||
if($this->config->edition != 'open' && $oldBug->feedback) $this->loadModel('feedback')->updateStatus('bug', $oldBug->feedback, $bug->status, $oldBug->status);
|
||||
if($this->config->edition != 'open' && $oldBug->feedback) $this->loadModel('feedback')->updateStatus('bug', $oldBug->feedback, $bug->status, $oldBug->status, $oldBug->id);
|
||||
|
||||
$changes = common::createChanges($oldBug, $bug);
|
||||
$files = $this->loadModel('file')->saveUpload('bug', $bug->id);
|
||||
@@ -639,7 +639,7 @@ class bugModel extends model
|
||||
$this->dao->update(TABLE_BUG)->data($bug, 'comment')->autoCheck()->checkFlow()->where('id')->eq($bug->id)->exec();
|
||||
if(dao::isError()) return false;
|
||||
|
||||
if($this->config->edition != 'open' && $oldBug->feedback) $this->loadModel('feedback')->updateStatus('bug', $oldBug->feedback, $bug->status, $oldBug->status);
|
||||
if($this->config->edition != 'open' && $oldBug->feedback) $this->loadModel('feedback')->updateStatus('bug', $oldBug->feedback, $bug->status, $oldBug->status, $oldBug->id);
|
||||
|
||||
$changes = common::createChanges($oldBug, $bug);
|
||||
$actionID = $this->loadModel('action')->create('bug', $bug->id, 'Closed', $this->post->comment);
|
||||
|
||||
Reference in New Issue
Block a user