From: Jared Camins-Esakov Date: Sat, 22 Dec 2012 20:53:56 +0000 (-0500) Subject: Merge branch 'bug_9151' into 3.12-master X-Git-Tag: v3.12.00-alpha~287 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=90d362a74b10ed7ae96d04613b4e23f722e3119a;hp=721b5df3fe7ff5276f1d4699154f2fd191c7e0c5;p=koha_fer Merge branch 'bug_9151' into 3.12-master --- diff --git a/C4/Auth.pm b/C4/Auth.pm index 4ea03c0462..b32136a033 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -934,17 +934,11 @@ sub checkauth { my $value = $query->param($name); push @inputs, { name => $name, value => $value }; } - # get the branchloop, which we need for authentication - my $branches = GetBranches(); - my @branch_loop; - for my $branch_hash (sort keys %$branches) { - push @branch_loop, {branchcode => "$branch_hash", branchname => $branches->{$branch_hash}->{'branchname'}, }; - } my $template_name = ( $type eq 'opac' ) ? 'opac-auth.tmpl' : 'auth.tmpl'; my $template = C4::Templates::gettemplate($template_name, $type, $query ); $template->param( - branchloop => \@branch_loop, + branchloop => GetBranchesLoop(), opaccolorstylesheet => C4::Context->preference("opaccolorstylesheet"), opaclayoutstylesheet => C4::Context->preference("opaclayoutstylesheet"), login => 1, diff --git a/C4/Branch.pm b/C4/Branch.pm index d765c99238..fe67e0c175 100644 --- a/C4/Branch.pm +++ b/C4/Branch.pm @@ -160,11 +160,12 @@ sub GetBranchesLoop { # since this is what most pages want anyway my $onlymine = @_ ? shift : onlymine(); my $branches = GetBranches($onlymine); my @loop; - foreach ( sort { uc($branches->{$a}->{branchname}) cmp uc($branches->{$b}->{branchname}) } keys %$branches ) { + foreach my $branchcode ( sort { uc($branches->{$a}->{branchname}) cmp uc($branches->{$b}->{branchname}) } keys %$branches ) { push @loop, { - value => $_, - selected => ($_ eq $branch) ? 1 : 0, - branchname => $branches->{$_}->{branchname}, + value => $branchcode, + branchcode => $branchcode, + selected => ($branchcode eq $branch) ? 1 : 0, + branchname => $branches->{$branchcode}->{branchname}, }; } return \@loop; diff --git a/debian/scripts/koha-run-backups b/debian/scripts/koha-run-backups index 0aafc52309..74f879b744 100755 --- a/debian/scripts/koha-run-backups +++ b/debian/scripts/koha-run-backups @@ -58,7 +58,7 @@ done for name in $(koha-list --enabled | grep -Fxv demo) do koha-dump "$name" > /dev/null - if [ -z "$dirname"]; then + if [ -z "$dirname" ]; then backupdir="$( xmlstarlet sel -t -v 'yazgfs/config/backupdir' /etc/koha/sites/$name/koha-conf.xml )"; else backupdir="$dirname/$name"; diff --git a/docs/history.txt b/docs/history.txt index 58f7a01ffe..af41839675 100644 --- a/docs/history.txt +++ b/docs/history.txt @@ -644,4 +644,5 @@ November 22 2012 Koha 3.8.7 released releases November 23 2012 Koha 3.10.0 released releases December 12 2012 Romina Racca becomes the 195th developer to have a patch pushed December 17 2012 Vitor Fernandes becomes the 196th developer to have a patch pushed +December 21 2012 Nadia Nicolaides becomes the 197th developer to have a patch pushed diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index a4842cd465..376366e015 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -290,8 +290,9 @@
  • Andrew Moore
  • Sharon Moreland
  • Nicolas Morin
  • -
  • Mike Mylonas
  • -
  • Joy Nelson
  • +
  • Mike Mylonas
  • +
  • Nadia Nicolaides
  • +
  • Joy Nelson
  • Chris Nighswonger
  • Albert Oller
  • Eric Olsen