FIX: fix content edit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user