Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 9566 Rev 9567
Línea 584... Línea 584...
584
                            'data' => 'ERROR_RECORD_NOT_FOUND'
584
                            'data' => 'ERROR_RECORD_NOT_FOUND'
585
                        ]);
585
                        ]);
586
                    }
586
                    }
Línea 587... Línea 587...
587
                    
587
                    
588
                    if(isset($dataPost['high_performance_group_topic_id'])){
-
 
589
                        return new JsonModel([
-
 
590
                            'success' => false,
-
 
591
                            'data' => $feed
-
 
-
 
588
                    if(isset($dataPost['high_performance_group_topic_id'])){
592
                        ]);
589
                        
593
                        $topicMapper = TopicMapper::getInstance($this->adapter);
590
                        $topicMapper = TopicMapper::getInstance($this->adapter);
594
                        $topic = $topicMapper->fetchOneByUuid($feed->high_performance_group_topic_id);
591
                        $topic = $topicMapper->fetchOneByUuid($feed->high_performance_group_topic_id);
595
                        if($topic){
592
                        if($topic){
596
                            $feed->high_performance_group_topic_id = $topic->id;
593
                            $feed->high_performance_group_topic_id = $topic->id;
597
                        }else{
594
                        }else{
598
                            return new JsonModel([
595
                            return new JsonModel([
599
                                'success' => false,
596
                                'success' => false,
600
                                'data' => 'ERROR_RECORD_NOT_FOUND'
597
                                'data' => 'ERROR_RECORD_NOT_FOUND'
601
                            ]);
598
                            ]);
-
 
599
                        }
-
 
600
                        return new JsonModel([
-
 
601
                            'success' => false,
-
 
602
                            'data' => $topic->id
602
                        }
603
                        ]);
Línea 603... Línea 604...
603
                    }
604
                    }
604
                   
605