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