REFACTORING #1880 @4h30m: another ugly refactoring commit
This commit is contained in:
@@ -24,7 +24,7 @@ class Presenter implements WidgetRenderer
|
||||
if (!$form)
|
||||
return null;
|
||||
|
||||
$formData = json_decode($form->module_settings);
|
||||
$formData = json_decode($form->moduleSettings);
|
||||
|
||||
$code = '<div class="address-widget ' . e($widget->container_class) . '"';
|
||||
if ($widget->container_id) {
|
||||
@@ -47,7 +47,7 @@ class Presenter implements WidgetRenderer
|
||||
*/
|
||||
public static function renderAddForm(WidgetType $type)
|
||||
{
|
||||
$contactForms = Content::where('module_handler', config('contactform.handler'))
|
||||
$contactForms = Content::where('moduleHandler', config('contactform.handler'))
|
||||
->get();
|
||||
|
||||
return view('contactform::admin.widgets.address.new', [
|
||||
@@ -66,7 +66,7 @@ class Presenter implements WidgetRenderer
|
||||
*/
|
||||
public static function renderEditForm(Widget $widget)
|
||||
{
|
||||
$contactForms = Content::where('module_handler', config('contactform.handler'))
|
||||
$contactForms = Content::where('moduleHandler', config('contactform.handler'))
|
||||
->get();
|
||||
return view('contactform::admin.widgets.address.edit', [
|
||||
'widget' => $widget,
|
||||
|
||||
Reference in New Issue
Block a user