Skip to content

Commit

Permalink
Merge branch 'master' into FixMenuButtons
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker authored Sep 19, 2024
2 parents f0c8ca4 + c434c8a commit da87413
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
- filter menuButtonProperties

0.50.2 2024-09-18 16:42:18 +0200 Tobias Oetiker <[email protected]>

- fix regression with missing defaults for app and log in user object

0.50.1 2024-08-30 12:27:22 +0200 Tobias Oetiker <[email protected]>

- show a popup before reloading the page
Expand Down
2 changes: 1 addition & 1 deletion lib/CallBackery.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use CallBackery::Database;
use CallBackery::User;
use Scalar::Util qw(weaken);

our $VERSION = '0.50.1';
our $VERSION = '0.50.2';

=head2 config
Expand Down
10 changes: 8 additions & 2 deletions lib/CallBackery/User.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ the controller
=cut

has controller => undef, weak => 1;
has app => undef, weak => 1;
has log => undef, weak => 1;

has app => sub ($self) {
$self->controller->app;
}, weak => 1;

has log => sub ($self) {
$self->controller ? $self->controller->log : $self->app->log;
}, weak => 1;

=head2 $self->userId
Expand Down

0 comments on commit da87413

Please sign in to comment.