Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 8406 Rev 8407
Línea 288... Línea 288...
288
            $dataPost = $request->getPost()->toArray();
288
            $dataPost = $request->getPost()->toArray();
289
            $form = new CommentAnswerForm();
289
            $form = new CommentAnswerForm();
290
            $form->setData($dataPost);
290
            $form->setData($dataPost);
Línea 291... Línea 291...
291
            
291
            
292
            if($form->isValid()) {
-
 
293
                $response = [
-
 
294
                    'success' => false,
-
 
295
                    'data' => 'ERROR_POSTsadsa_NOT_FOUND'
-
 
296
                ];
-
 
-
 
292
            if($form->isValid()) {
297
                return new JsonModel($response);
293
                
298
                $companyUserMapper = CompanyUserMapper::getInstance($this->adapter);
294
                $companyUserMapper = CompanyUserMapper::getInstance($this->adapter);
Línea 299... Línea 295...
299
                $owner = $companyUserMapper->fetchOwnerByCompanyId($currentCompany->id);
295
                $owner = $companyUserMapper->fetchOwnerByCompanyId($currentCompany->id);
300
                
296
                
301
                $dataPost = (array) $form->getData();
297
                $dataPost = (array) $form->getData();
302
                $comment = new Comment();
298
                $comment = new Comment();
Línea 303... Línea 299...
303
                $comment->comment = $dataPost['comment'];
299
                $comment->comment = $dataPost['answer'];
304
                $comment->feed_id = $feed->id;
300
                $comment->feed_id = $feed->id;