FIX: fix contact form widget

This commit is contained in:
Michal Kváček
2017-02-23 18:23:30 +01:00
parent 8db748089b
commit 26854b7207
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -28,6 +28,6 @@ class Category extends Entity
public function content() public function content()
{ {
return $this->hasMany(Content::class); return $this->hasMany(Content::class, 'categoryId');
} }
} }
@@ -32,8 +32,6 @@ class Presenter implements WidgetRenderer
return null; return null;
} }
$form->moduleSettings = json_decode($form->moduleSettings);
return view(self::$template, ['widget' => $widget, 'form' => $form]); return view(self::$template, ['widget' => $widget, 'form' => $form]);
} }