Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 439 Rev 440
Línea 256... Línea 256...
256
 
256
 
257
        $request = $this->getRequest();
257
        $request = $this->getRequest();
258
        if ($request->isGet()) {
258
        if ($request->isGet()) {
259
            return new JsonModel([
259
            return new JsonModel([
-
 
260
                'success' => false,
-
 
261
                'data' => $companySelfEvaluationTest && $companySelfEvaluationTest->status == CompanySelfEvaluationTest::STATUS_DRAFT ?
260
                'success' => false,
262
                    json_decode($companySelfEvaluationTest->content) :
261
                'data' => [
263
                [
262
                    'name' => $companySelfEvaluationForm->name,
264
                    'name' => $companySelfEvaluationForm->name,
263
                    'description' => $companySelfEvaluationForm->description,
265
                    'description' => $companySelfEvaluationForm->description,
264
                    'text' => $companySelfEvaluationForm->text,
-
 
265
                    'content' => $companySelfEvaluationTest && $companySelfEvaluationTest->status == CompanySelfEvaluationTest::STATUS_DRAFT ?
-
 
266
                    json_decode($companySelfEvaluationTest->content) :
266
                    'text' => $companySelfEvaluationForm->text,
267
                    json_decode($companySelfEvaluationForm->content),
267
                    'content' => $companySelfEvaluationForm->content,
268
                ]
268
                ]
269
            ]);
269
            ]);
Línea 270... Línea 270...
270
        }
270
        }