Bugzilla – Attachment 2231 Details for
Bug 4857
aqplan.pl: consideration of Planning categories with authorised values
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
aqplan.pl: consideration of Planning categories with authorised values
0001-BUG-4857-aqplan.pl-consideration-of-Planning-categor.patch (text/plain), 2.38 KB, created by
Alex Arnaud
on 2010-06-09 09:07:18 UTC
(
hide
)
Description:
aqplan.pl: consideration of Planning categories with authorised values
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2010-06-09 09:07:18 UTC
Size:
2.38 KB
patch
obsolete
>From 79ccca78026c1315aab5614205ed79cfe4081506 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Wed, 9 Jun 2010 11:02:47 +0200 >Subject: [PATCH] (BUG #4857) aqplan.pl: consideration of Planning categories with authorised values > >--- > admin/aqplan.pl | 14 +++++++++++++- > .../prog/en/modules/admin/aqplan.tmpl | 1 + > 2 files changed, 14 insertions(+), 1 deletions(-) > >diff --git a/admin/aqplan.pl b/admin/aqplan.pl >index 0090208..302e21c 100755 >--- a/admin/aqplan.pl >+++ b/admin/aqplan.pl >@@ -156,6 +156,7 @@ while ( my ($category) = $sth->fetchrow_array ) { > push( @category_list, 'MONTHS' ); > push( @category_list, 'ITEMTYPES' ); > push( @category_list, 'BRANCHES' ); >+push( @category_list, $$_{'authcat'} ) foreach @$auth_cats_loop; > > #reorder the list > @category_list = sort { $a cmp $b } @category_list; >@@ -177,7 +178,6 @@ my @authvals; > my %labels; > > my @names = $input->param(); >- > # ------------------------------------------------------------ > if ( $op eq 'save' ) { > >@@ -294,6 +294,18 @@ elsif ( $authcat eq 'ITEMTYPES' ) { > } > } > $sth->finish; >+} elsif ($authcat) { >+ my $query = qq{ SELECT * FROM authorised_values WHERE category=? order by lib }; >+ my $sth = $dbh->prepare($query); >+ $sth->execute($authcat); >+ if ( $sth->rows > 0 ) { >+ for ( my $i = 0 ; $i < $sth->rows ; $i++ ) { >+ my $results = $sth->fetchrow_hashref; >+ push @authvals, $results->{authorised_value}; >+ $labels{ $results->{authorised_value} } = $results->{lib}; >+ } >+ } >+ $sth->finish; > } > > my @authvals_row; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tmpl >index 97e4aed..91bd6a7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tmpl >@@ -103,6 +103,7 @@ YAHOO.util.Event.onAvailable("popmenu", function () { > > <form method="post" id='Aform' name="Aform" action="/cgi-bin/koha/admin/aqplan.pl"> > >+<input type="hidden" id="budget_period_id" name="budget_period_id" value="<!-- TMPL_VAR NAME="budget_period_id" -->"/> > <fieldset style=" border:2px solid #EEEEEE; " > > <legend>Planning for <!-- TMPL_VAR NAME="budget_period_description" --> by <!-- TMPL_VAR NAME="authcat" --></legend> > <table class="invis" > >-- >1.6.3.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4857
:
2225
| 2231 |
3151