Skip to content

Commit

Permalink
Fix #4648
Browse files Browse the repository at this point in the history
  • Loading branch information
z-song committed May 28, 2020
1 parent f634551 commit 86e9373
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": ["laravel", "admin", "grid", "form"],
"homepage": "https://github.com/z-song/laravel-admin",
"license": "MIT",
"version": "v1.8.0",
"version": "v1.8.1",
"authors": [
{
"name": "zsong",
Expand Down Expand Up @@ -56,7 +56,6 @@
"aliases": {
"Admin": "Encore\\Admin\\Facades\\Admin"
}

}
}
}
2 changes: 1 addition & 1 deletion src/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Admin
*
* @var string
*/
const VERSION = '1.8.0';
const VERSION = '1.8.1';

/**
* @var Navbar
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ protected function getRules()
$rules = array_filter(explode('|', $rules));
}

if (!$this->form) {
if (!$this->form || !$this->form instanceof Form) {
return $rules;
}

Expand Down

0 comments on commit 86e9373

Please sign in to comment.