Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 9567 Rev 9569
Línea 583... Línea 583...
583
                            'success' => false,
583
                            'success' => false,
584
                            'data' => 'ERROR_RECORD_NOT_FOUND'
584
                            'data' => 'ERROR_RECORD_NOT_FOUND'
585
                        ]);
585
                        ]);
586
                    }
586
                    }
Línea 587... Línea 587...
587
                    
587
                    
Línea 588... Línea 588...
588
                    if(isset($dataPost['high_performance_group_topic_id'])){
588
                    if(isset($dataPost['topic_id'])){
589
                        
589
                        
590
                        $topicMapper = TopicMapper::getInstance($this->adapter);
590
                        $topicMapper = TopicMapper::getInstance($this->adapter);
591
                        $topic = $topicMapper->fetchOneByUuid($feed->high_performance_group_topic_id);
591
                        $topic = $topicMapper->fetchOneByUuid($feed->topic_id);
592
                        if($topic){
592
                        if($topic){
593
                            $feed->high_performance_group_topic_id = $topic->id;
593
                            $feed->topic_id = $topic->id;
594
                        }else{
594
                        }else{
595
                            return new JsonModel([
595
                            return new JsonModel([
596
                                'success' => false,
596
                                'success' => false,
Línea 844... Línea 844...
844
                                    return new JsonModel([
844
                                    return new JsonModel([
845
                                        'success' => false,
845
                                        'success' => false,
846
                                        'data' => 'ERROR_YOU_DO_NOT_HAVE_ACCESS'
846
                                        'data' => 'ERROR_YOU_DO_NOT_HAVE_ACCESS'
847
                                    ]);
847
                                    ]);
848
                                }
848
                                }
849
                                $select->where->equalTo('high_performance_group_topic_id',$topic->id);
849
                                $select->where->equalTo('topic_id',$topic->id);
Línea 850... Línea 850...
850
                          
850
                          
851
                            }else{
851
                            }else{
852
                                return new JsonModel([
852
                                return new JsonModel([
853
                                    'success' => false,
853
                                    'success' => false,
Línea 856... Línea 856...
856
                            }
856
                            }
857
                        }else{
857
                        }else{
858
                            if(isset($urgent)){
858
                            if(isset($urgent)){
859
                                $select->where->equalTo('priority', Feed::PRIORITY_URGENT);
859
                                $select->where->equalTo('priority', Feed::PRIORITY_URGENT);
860
                            }else{
860
                            }else{
861
                                $select->where->IsNull('high_performance_group_topic_id');
861
                                $select->where->IsNull('topic_id');
862
                            }
862
                            }
Línea 863... Línea 863...
863
                            
863