[Koha-patches] [PATCH] defining a value which could be optionnal
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Tue Aug 25 23:56:15 CEST 2009
---
C4/SQLHelper.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/C4/SQLHelper.pm b/C4/SQLHelper.pm
index bbc31ed..7a6db71 100644
--- a/C4/SQLHelper.pm
+++ b/C4/SQLHelper.pm
@@ -155,7 +155,7 @@ sub UpdateInTable{
my $field_id=GetPrimaryKey($tablename);
my $id=$$data{$field_id};
my $dbh = C4::Context->dbh;
- my ($keys,$values)=_filter_fields($data,$tablename);
+ my ($keys,$values)=_filter_fields($data,$tablename,0);
my $query = do { local $"=',';
qq{
@@ -234,7 +234,7 @@ and a ref to value array
sub _filter_fields{
my ($data_to_filter,$tablename,$research)=@_;
- warn "$tablename";
+ warn "$tablename research $research";
my @keys;
my @values;
my $columns= _columns($tablename);
--
1.6.0.4
More information about the Koha-patches
mailing list