|
@@ 392-395 (lines=4) @@
|
| 389 |
|
$roles = array(); |
| 390 |
|
for($i = 0; $i < $count; $i++) |
| 391 |
|
{ |
| 392 |
|
if(isset($entities[$i]['status']) && ($entities[$i]['status'] === 'filled' || $entities[$i]['status'] === 'pending')) |
| 393 |
|
{ |
| 394 |
|
continue; |
| 395 |
|
} |
| 396 |
|
if(!isset($roles[$entities[$i]['roleID']])) |
| 397 |
|
{ |
| 398 |
|
$roles[$entities[$i]['roleID']] = new \VolunteerRole($entities[$i]['roleID']); |
|
@@ 439-443 (lines=5) @@
|
| 436 |
|
$uuid = $this->genUUID(); |
| 437 |
|
for($i = 0; $i < $count; $i++) |
| 438 |
|
{ |
| 439 |
|
if(isset($entities[$i]['status']) && ($entities[$i]['status'] === 'filled' || $entities[$i]['status'] === 'pending')) |
| 440 |
|
{ |
| 441 |
|
$entities[$i] = false; |
| 442 |
|
continue; |
| 443 |
|
} |
| 444 |
|
if((string)$entities[$i]['_id'] === (string)new \MongoDB\BSON\ObjectId($myShift)) |
| 445 |
|
{ |
| 446 |
|
$entities[$i]['participant'] = $this->user->uid; |