Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16817 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16817 Rev 16930
Línea 405... Línea 405...
405
        
405
        
Línea 406... Línea 406...
406
        
406
        
Línea 407... Línea 407...
407
        
407
        
Línea 408... Línea 408...
408
        if ($request->isPost()) {
408
        if ($request->isPost()) {
409
         
409
         
Línea 410... Línea 410...
410
            
410
   
411
            
411
            
412
            $dataPost = $request->getPost()->toArray();
412
            $dataPost = $request->getPost()->toArray();
413
            
413
            
414
            $form = new PerformanceEvaluationTakeAnTestForm($this->adapter, $currentCompany->id);
414
            $form = new PerformanceEvaluationTakeAnTestForm($this->adapter, $currentCompany->id);
415
            $form->setData($dataPost);
415
            $form->setData($dataPost);
416
            
416
            
Línea 435... Línea 435...
435
                        break;
435
                        break;
436
                }
436
                }
Línea 437... Línea 437...
437
                
437
                
438
                
438
                
Línea 439... Línea 439...
439
                $type = $this->translator->translate($type);
439
                $type = $this->translator->translate($type);
440
                
440
        
Línea 441... Línea 441...
441
                
441
                
Línea 442... Línea -...
442
                $performanceEvaluationFormMapper = PerformanceEvaluationFormMapper::getInstance($this->adapter);
-
 
443
                $performanceEvaluationForm = $performanceEvaluationFormMapper->fetchOne($performanceEvaluationTest->form_id);
442
                $performanceEvaluationFormMapper = PerformanceEvaluationFormMapper::getInstance($this->adapter);
-
 
443
                $performanceEvaluationForm = $performanceEvaluationFormMapper->fetchOne($performanceEvaluationTest->form_id);
-
 
444
                
-
 
445
                $dataPost = (array) $form->getData();
444
                
446
 
445
                $dataPost = (array) $form->getData();
447
                $content = json_decode($performanceEvaluationTest->content);
446
 
448
                
Línea 447... Línea 449...
447
 
449
            
448
                $content = json_decode($performanceEvaluationTest->content);
450
                
-
 
451
                $content->points = $dataPost['points'];
-
 
452
                $content->comment = $dataPost['comment'];
-
 
453
                $content->evaluation = [];
449
                $content->points = $dataPost['points'];
454
                
450
                $content->comment = $dataPost['comment'];
455
                foreach($content->competencies_selected as $competency)
-
 
456
                {
451
                $content->evaluation = [];
457
               
452
                
458
                    
453
                foreach($content->competencies_selected as $competency)
-
 
454
                {
459
                    
-
 
460
                    foreach($competency->behaviors as $behavior)
455
                    foreach($competency->behaviors as $behavior)
461
                    {
456
                    {
462
                  
Línea -... Línea 463...
-
 
463
                        $key_comment = $competency->uuid . '-' . $behavior->uuid . '-comment';
-
 
464
                        $key_points = $competency->uuid . '-' . $behavior->uuid . '-points';
457
                        $key_comment = $competency->uuid . '-' . $behavior->uuid . '-comment';
465
 
Línea 458... Línea 466...
458
                        $key_points = $competency->uuid . '-' . $behavior->uuid . '-points';
466
                        $value_comment = $this->params()->fromPost($key_comment);
459
                        
467
                        $value_comment = Functions::sanitizeFilterString($value_comment);
460
                        
468
                        $value_comment = empty($value_comment) ? '' : $value_comment;
Línea 474... Línea 482...
474
                        
482
                        
475
                        
483
                        
Línea 476... Línea 484...
476
                    }
484
                    }
477
                }
485
                }
478
                
486
                
Línea 479... Línea 487...
479
                
487