Skip to content

Commit 7768ebd

Browse files
committed
Merge branch 'hotfix-0.3.1.20'
2 parents 2feb97f + 7ab7b05 commit 7768ebd

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## v0.3.1.20
4+
5+
- Revert changes to User::fresh() but leave comment regarding upgrading Eloquent
6+
37
## v0.3.1.19
48

59
- Fix some minor error screen layout issues

userfrosting/initialize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
'guest_theme' => 'default',
156156
'minify_css' => '0',
157157
'minify_js' => '0',
158-
'version' => '0.3.1.19',
158+
'version' => '0.3.1.20',
159159
'author' => 'Alex Weissman',
160160
'show_terms_on_register' => '1',
161161
'site_location' => 'The State of Indiana'

userfrosting/models/database/User.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ public static function isLoggedIn(){
8787
/**
8888
* Refresh the User and their associated Groups from the DB.
8989
*
90+
* If you are getting errors here after upgrading Eloquent, remove the word "array" from the function declaration.
91+
*
9092
* @see http://stackoverflow.com/a/27748794/2970321
9193
*/
92-
public function fresh($options = []){
94+
public function fresh(array $options = []){
9395
// TODO: Update table and column info, in case it has changed?
9496
$user = parent::fresh($options);
9597
$user->getGroupIds();

0 commit comments

Comments
 (0)