app/Model/Project/Issue/Comment/SendMessages.php 1 location
|
@@ 166-175 (lines=10) @@
|
163 |
|
* |
164 |
|
* @return void |
165 |
|
*/ |
166 |
|
protected function populateData() |
167 |
|
{ |
168 |
|
// Set the relation of assigned in issue object from the fetch data |
169 |
|
$this->issue->setRelation('assigned', $this->getUserById($this->issue->assigned_to)); |
170 |
|
$creator = $this->getUserById($this->issue->created_by); |
171 |
|
if ($creator) { |
172 |
|
$this->issue->setRelation('user', $creator); |
173 |
|
} |
174 |
|
$this->loadIssueCreatorToProjectUsers(); |
175 |
|
} |
176 |
|
|
177 |
|
/** |
178 |
|
* Check if the latest message is about deleting a comment. |
app/Model/Project/Issue/SendMessages.php 1 location
|
@@ 246-254 (lines=9) @@
|
243 |
|
* |
244 |
|
* @return void |
245 |
|
*/ |
246 |
|
protected function populateData() |
247 |
|
{ |
248 |
|
$this->issue->setRelation('assigned', $this->getUserById($this->issue->assigned_to)); |
249 |
|
$creator = $this->getUserById($this->issue->created_by); |
250 |
|
if ($creator) { |
251 |
|
$this->issue->setRelation('user', $creator); |
252 |
|
} |
253 |
|
$this->loadIssueCreatorToProjectUsers(); |
254 |
|
} |
255 |
|
|
256 |
|
/** |
257 |
|
* Check if the latest message is about closing or reopening an issue. |