Skip to content

Commit

Permalink
Bug fix with undefined route name when blocks-editor is disabled (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghobaty authored and ifox committed Sep 18, 2019
1 parent 9eaedc4 commit eaacdbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/Admin/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ protected function form($id, $item = null)
'permalinkPrefix' => $this->getPermalinkPrefix($baseUrl),
'saveUrl' => $this->getModuleRoute($item->id, 'update'),
'editor' => $this->moduleHas('revisions') && $this->moduleHas('blocks') && !$this->disableEditor,
'blockPreviewUrl' => URL::route('admin.blocks.preview'),
'blockPreviewUrl' => Route::has('admin.blocks.preview')? URL::route('admin.blocks.preview') : '#',
'revisions' => $this->moduleHas('revisions') ? $item->revisionsArray() : null,
] + (Route::has($previewRouteName) ? [
'previewUrl' => moduleRoute($this->moduleName, $this->routePrefix, 'preview', $item->id),
Expand Down

0 comments on commit eaacdbc

Please sign in to comment.