Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 8611 | Rev 8627 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 8611 Rev 8612
Línea 540... Línea 540...
540
                $feed = new Feed();
540
                $feed = new Feed();
541
                $hydrator->hydrate($dataPost, $feed);
541
                $hydrator->hydrate($dataPost, $feed);
542
                if($feed->type=='hptg'){
542
                if($feed->type=='hptg'){
Línea 543... Línea 543...
543
 
543
 
544
                    $group_id =  $this->params()->fromRoute('group_id');
-
 
545
                    $topic_uuid =  $this->params()->fromRoute('topic_uuid');
544
                    $group_id =  $this->params()->fromRoute('group_id');
546
                    
-
 
547
                    $data = [
-
 
548
                        'success' => false,
-
 
549
                        'data' => $topic_uuid
-
 
550
                    ];
-
 
551
 
-
 
552
                    return new JsonModel($data);
545
              
553
                    $highPerformanceTeamsGroupsMapper = HighPerformanceTeamsGroupsMapper::getInstance($this->adapter);
546
                    $highPerformanceTeamsGroupsMapper = HighPerformanceTeamsGroupsMapper::getInstance($this->adapter);
Línea 554... Línea 547...
554
                    $highPerformanceTeamsGroups = $highPerformanceTeamsGroupsMapper->fetchOneByUuid($group_id);
547
                    $highPerformanceTeamsGroups = $highPerformanceTeamsGroupsMapper->fetchOneByUuid($group_id);
555
                    
548
                    
Línea 593... Línea 586...
593
                    }
586
                    }
Línea 594... Línea 587...
594
                    
587
                    
Línea 595... Línea 588...
595
                    if(isset($dataPost['high_performance_group_topic_id'])){
588
                    if(isset($dataPost['high_performance_group_topic_id'])){
596
                        
589
                        
597
                        $highPerformanceTeamsGroupsViewTopicMapper = HighPerformanceTeamsGroupsViewTopicMapper::getInstance($this->adapter);
590
                        $highPerformanceTeamsGroupsViewTopicMapper = HighPerformanceTeamsGroupsViewTopicMapper::getInstance($this->adapter);
598
                        $highPerformanceTeamsGroupsViewTopic = $highPerformanceTeamsGroupsViewTopicMapper->fetchOneByUuid($dataPost['high_performance_group_topic_id']);
591
                        $highPerformanceTeamsGroupsViewTopic = $highPerformanceTeamsGroupsViewTopicMapper->fetchOneByUuid($feed->high_performance_group_topic_id);
599
                        if($highPerformanceTeamsGroupsViewTopic){
592
                        if($highPerformanceTeamsGroupsViewTopic){
600
                            $feed->high_performance_group_topic_id = $highPerformanceTeamsGroupsViewTopic->id;
593
                            $feed->high_performance_group_topic_id = $highPerformanceTeamsGroupsViewTopic->id;
601
                        }else{
594
                        }else{