FIX: fix content edit

This commit is contained in:
Michal Kváček
2017-02-10 02:49:14 +01:00
parent 3748d00c2f
commit 66e78aff6a
6 changed files with 10 additions and 60 deletions
+1 -9
View File
@@ -90,17 +90,9 @@ class Content extends Repository implements IContent
*/
public function getByURL($url)
{
$page = $this->getPageQuery()
return $this->getPageQuery()
->where('url', $url)
->first();
if (is_null($page)) {
return null;
}
$page->moduleSettings = json_decode($page->moduleSettings);
return $page;
}
/**