FIX: fix contact form widget
This commit is contained in:
@@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user