| Línea 332... |
Línea 332... |
| 332 |
$PlanningObjectivesAndGoalsTaskMember->status = PlanningObjectivesAndGoalsTaskMembers::STATUS_ACTIVE;
|
332 |
$PlanningObjectivesAndGoalsTaskMember->status = PlanningObjectivesAndGoalsTaskMembers::STATUS_ACTIVE;
|
| 333 |
$PlanningObjectivesAndGoalsTaskMemberMapper = PlanningObjectivesAndGoalsTaskMembersMapper::getInstance($this->adapter);
|
333 |
$PlanningObjectivesAndGoalsTaskMemberMapper = PlanningObjectivesAndGoalsTaskMembersMapper::getInstance($this->adapter);
|
| 334 |
$PlanningObjectivesAndGoalsTaskMemberMapper->insert($PlanningObjectivesAndGoalsTaskMember);
|
334 |
$PlanningObjectivesAndGoalsTaskMemberMapper->insert($PlanningObjectivesAndGoalsTaskMember);
|
| 335 |
}
|
335 |
}
|
| Línea 336... |
Línea 336... |
| 336 |
|
336 |
|
| 337 |
|
337 |
|
| Línea 338... |
Línea 338... |
| 338 |
$this->logger->info('Se agrego la tarea ' . $planningObjectivesAndGoalsTask->title, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
|
338 |
$this->logger->info('Se agrego la tarea ' . $planningObjectivesAndGoalsTask->title, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
|
| 339 |
|
339 |
|
| 340 |
$data = [
|
340 |
$data = [
|
| Línea 493... |
Línea 493... |
| 493 |
$hydrator = new ObjectPropertyHydrator();
|
493 |
$hydrator = new ObjectPropertyHydrator();
|
| 494 |
$hydrator->hydrate($dataPost, $task);
|
494 |
$hydrator->hydrate($dataPost, $task);
|
| 495 |
$result = $planningObjectivesAndGoalsTaskMapper->update($task);
|
495 |
$result = $planningObjectivesAndGoalsTaskMapper->update($task);
|
| Línea 496... |
Línea 496... |
| 496 |
|
496 |
|
| - |
|
497 |
if($result) {
|
| - |
|
498 |
|
| - |
|
499 |
$userMapper = UserMapper::getInstance($this->adapter);
|
| - |
|
500 |
|
| - |
|
501 |
foreach( $dataPost['who'] as $record2){
|
| - |
|
502 |
$PlanningObjectivesAndGoalsTaskMember = new PlanningObjectivesAndGoalsTaskMembers();
|
| - |
|
503 |
$datosUser = $userMapper->fetchOneByUuid($record2);
|
| - |
|
504 |
$PlanningObjectivesAndGoalsTaskMember->task_id = $planningObjectivesAndGoalsTask->id;
|
| - |
|
505 |
$PlanningObjectivesAndGoalsTaskMember->user_id = $datosUser->id;
|
| - |
|
506 |
$PlanningObjectivesAndGoalsTaskMember->status = PlanningObjectivesAndGoalsTaskMembers::STATUS_ACTIVE;
|
| - |
|
507 |
$PlanningObjectivesAndGoalsTaskMemberMapper = PlanningObjectivesAndGoalsTaskMembersMapper::getInstance($this->adapter);
|
| - |
|
508 |
$PlanningObjectivesAndGoalsTaskMemberMapper->insert($PlanningObjectivesAndGoalsTaskMember);
|
| - |
|
509 |
}
|
| - |
|
510 |
|
| - |
|
511 |
|
| - |
|
512 |
|
| - |
|
513 |
|
| - |
|
514 |
|
| - |
|
515 |
|
| 497 |
if($result) {
|
516 |
|
| Línea 498... |
Línea 517... |
| 498 |
$this->logger->info('Se actualizo la tarea ' . $task->title, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
|
517 |
$this->logger->info('Se actualizo la tarea ' . $task->title, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
|
| 499 |
|
518 |
|
| 500 |
$data = [
|
519 |
$data = [
|