[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/admin authorised_values.pl [rel_3_0]
From: |
Antoine Farnault |
Subject: |
[Koha-cvs] koha/admin authorised_values.pl [rel_3_0] |
Date: |
Tue, 14 Nov 2006 15:05:31 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: Antoine Farnault <toins> 06/11/14 15:05:31
Modified files:
admin : authorised_values.pl
Log message:
re-get the suggestion id.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/admin/authorised_values.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.17&r2=1.17.2.1
Patches:
Index: authorised_values.pl
===================================================================
RCS file: /sources/koha/koha/admin/authorised_values.pl,v
retrieving revision 1.17
retrieving revision 1.17.2.1
diff -u -b -r1.17 -r1.17.2.1
--- authorised_values.pl 4 Jul 2006 14:36:51 -0000 1.17
+++ authorised_values.pl 14 Nov 2006 15:05:31 -0000 1.17.2.1
@@ -126,6 +126,7 @@
$sth->execute($id);
my $data=$sth->fetchrow_hashref;
$sth->finish;
+ $id = $input->param('id') unless $id;
$template->param(searchfield => $searchfield,
Tvalue =>
$data->{'authorised_value'},
id =>$id,
@@ -136,6 +137,7 @@
# called by delete_confirm, used to effectively confirm deletion of data in DB
} elsif ($op eq 'delete_confirmed') {
my $dbh = C4::Context->dbh;
+ my $id = $input->param('id');
my $sth=$dbh->prepare("delete from authorised_values where id=?");
$sth->execute($id);
$sth->finish;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha/admin authorised_values.pl [rel_3_0],
Antoine Farnault <=