Subject: | Exceptions after updating to most recent version |
# Caught exception in MyApp::Controller::AutoCRUD::Root->do_meta "Use of
uninitialized value in string eq at
perl5/Catalyst/Plugin/AutoCRUD/Controller/Root.pm line 118
- if ($c->stash->{site_conf}->{$db}->{hidden} eq 'yes') {
+ if (defined($c->stash->{site_conf}->{$db}->{hidden}) and $c->stash-
Show quoted text
>{site_conf}->{$db}->{hidden} eq 'yes') {
# Caught exception in MyApp::Controller::AutoCRUD::Root->do_meta "Use of
uninitialized value in string eq at
perl5/Catalyst/Plugin/AutoCRUD/Controller/Root.pm line 126
- if ($c->stash->{site_conf}->{$db}->{$table}->{hidden} eq 'yes') {
+ if (defined($c->stash->{site_conf}->{$db}->{$table}->{hidden}) and
$c->stash->{site_conf}->{$db}->{$table}->{hidden} eq 'yes') {
# Use of uninitialized value $sort in pattern match (m//) at
perl5/lib/perl5/Catalyst/Plugin/AutoCRUD/Model/Backend/DBIC.pm line 123
- $sort = $info->{pk} if $sort !~ m/^[\w ]+$/ or !exists $info->
{cols}->{$sort};
+ $sort = $info->{pk} if (!defined($sort) or $sort !~ m/^[\w ]+$/ or
!exists $info->{cols}->{$sort});