From ebcf5356c58d504a8c9365c94d9c5501be85b601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Behram=20=C3=87ELEN?= Date: Thu, 14 Jul 2016 06:49:55 +0300 Subject: [PATCH] slug based travis build :bug: fixes --- src/Ojs/ApiBundle/Handler/PostHandler.php | 1 + .../views/Journal/journal_articles.html.twig | 30 ++++++++++--------- .../Journal/last_articles_index.html.twig | 24 ++++++++------- 3 files changed, 30 insertions(+), 25 deletions(-) diff --git a/src/Ojs/ApiBundle/Handler/PostHandler.php b/src/Ojs/ApiBundle/Handler/PostHandler.php index 13852fd2e..465f53b29 100644 --- a/src/Ojs/ApiBundle/Handler/PostHandler.php +++ b/src/Ojs/ApiBundle/Handler/PostHandler.php @@ -119,6 +119,7 @@ private function processForm(AdminPost $entity, array $parameters, $method = "PU if ($form->isValid()) { $page = $form->getData(); $entity->setCurrentLocale('en'); + $entity->setSlug($entity->getTitle()); $this->om->persist($entity); $this->om->flush(); return $page; diff --git a/src/Ojs/SiteBundle/Resources/views/Journal/journal_articles.html.twig b/src/Ojs/SiteBundle/Resources/views/Journal/journal_articles.html.twig index 63e86917b..fcf878027 100644 --- a/src/Ojs/SiteBundle/Resources/views/Journal/journal_articles.html.twig +++ b/src/Ojs/SiteBundle/Resources/views/Journal/journal_articles.html.twig @@ -44,20 +44,22 @@ diff --git a/src/Ojs/SiteBundle/Resources/views/Journal/last_articles_index.html.twig b/src/Ojs/SiteBundle/Resources/views/Journal/last_articles_index.html.twig index 8b748799b..94f84c500 100644 --- a/src/Ojs/SiteBundle/Resources/views/Journal/last_articles_index.html.twig +++ b/src/Ojs/SiteBundle/Resources/views/Journal/last_articles_index.html.twig @@ -57,17 +57,19 @@