Bug 14120: Fixing t/db_dependent/Auth.t noise
TEST PLAN --------- 1) $ prove t/db_dependent/Auth.t -- warnings 2) Apply this patch 3) $ prove t/db_dependent/Auth.t -- only one specific type of warning 4) Apply bug 5010 patch 5) $ prove t/db_dependent/Auth.t -- noisy is eliminated 6) koha qa test tools. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> With patch only one warn With 5010 no more warns No errors Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
d78f832cb0
commit
4b9f4e1749
|
|
@ -252,7 +252,7 @@ sub get_template_and_user {
|
|||
|
||||
if ($flags) {
|
||||
foreach my $module ( keys %$all_perms ) {
|
||||
if ( $flags->{$module} == 1 ) {
|
||||
if ( defined($flags->{$module}) && $flags->{$module} == 1 ) {
|
||||
foreach my $subperm ( keys %{ $all_perms->{$module} } ) {
|
||||
$template->param( "CAN_user_${module}_${subperm}" => 1 );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -161,6 +161,7 @@ sub _get_template_file {
|
|||
my $is_intranet = $interface eq 'intranet';
|
||||
my $htdocs = C4::Context->config($is_intranet ? 'intrahtdocs' : 'opachtdocs');
|
||||
my ($theme, $lang, $availablethemes) = themelanguage($htdocs, $tmplbase, $interface, $query);
|
||||
$lang //= 'en';
|
||||
my $filename = "$htdocs/$theme/$lang/modules/$tmplbase";
|
||||
|
||||
return ($htdocs, $theme, $lang, $filename);
|
||||
|
|
|
|||
Loading…
Reference in New Issue