Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 721 Rev 724
Línea 404... Línea 404...
404
                $description = substr($description, 0, 120) . '...';
404
                $description = substr($description, 0, 120) . '...';
405
            }
405
            }
Línea 406... Línea 406...
406
 
406
 
407
            // Construct the item for the JSON response
407
            // Construct the item for the JSON response
408
            $item = [
408
            $item = [
409
                'image' => $storage->getGenericImage($path, ($categoryData['categories'][$record->category_id]['uuid'] ?? null), $record->image),
409
                'image' => $storage->getGenericImage($path, $record->uuid, $record->image),
410
                'title' => $record->title,
410
                'title' => $record->title,
411
                'description' => $description,
411
                'description' => $description,
412
                'category' => $categoryData['categories'][$record->category_id]['name'],
412
                'category' => $categoryData['categories'][$record->category_id]['name'],
413
                'link_view' => $categoryData['allow_view'] ? $this->url()->fromRoute('knowledge-area/view', ['id' => $record->uuid]) : '',
413
                'link_view' => $categoryData['allow_view'] ? $this->url()->fromRoute('knowledge-area/view', ['id' => $record->uuid]) : '',