Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 17161 Rev 17178
Línea 137... Línea 137...
137
                    }
137
                    }
138
                }
138
                }
Línea 139... Línea 139...
139
                
139
                
140
                if($isJson) {
140
                if($isJson) {
141
                    try {
141
                    try {
142
                        $topic_uuid     = Functions::sanitizeFilterString($this->params()->fromQuery('topic_uuid'));
142
                        $topic_uuid     = Functions::sanitizeFilterString($request->getQuery('topic_uuid'));
Línea 143... Línea 143...
143
                        $capsule_uuid   = Functions::sanitizeFilterString($this->params()->fromQuery('capsule_uuid'));
143
                        $capsule_uuid   = Functions::sanitizeFilterString($request->getQuery('capsule_uuid'));
144
                        
144
                        
145
                        $data = [
145
                        $data = [
146
                            'link_upload' => '',
146
                            'link_upload' => '',
Línea 155... Línea 155...
155
                                'data' => $data
155
                                'data' => $data
156
                            ]);     
156
                            ]);     
157
                        }              
157
                        }              
Línea 158... Línea 158...
158
                        
158
                        
159
                        $topicMapper = MicrolearningTopicMapper::getInstance($this->adapter);
-
 
160
                        if (!$topicMapper) {
-
 
161
                            throw new \Exception('Failed to initialize TopicMapper');
-
 
162
                        }
-
 
163
                        
159
                        $topicMapper = MicrolearningTopicMapper::getInstance($this->adapter);
-
 
160
                        $topic = $topicMapper->fetchOneByUuid($topic_uuid);
164
                        $topic = $topicMapper->fetchOneByUuid($topic_uuid);
161
                        
165
                        if(!$topic) {
162
                        if(!$topic) {
166
                            return new JsonModel([
163
                            return new JsonModel([
167
                                'success' => true,
164
                                'success' => true,
168
                                'data' => 'ERROR_TOPIC_NOT_FOUND'
165
                                'data' => 'ERROR_TOPIC_NOT_FOUND'