[interchange-cvs] interchange - heins modified 2 files
interchange-core@interchange.redhat.com
interchange-core@interchange.redhat.com
Tue Feb 5 03:34:00 2002
User: heins
Date: 2002-02-05 08:33:08 GMT
Modified: lib/Vend Form.pm
Modified: lib/Vend/Table Common.pm
Log:
* Fix Vend::Form bug which caused a default "1" to show up in many
widgets.
* Check for existence of record before runnin fatal $s->row() in
set_slice for DBM databases.
Revision Changes Path
2.11 +3 -3 interchange/lib/Vend/Form.pm
rev 2.11, prev_rev 2.10
Index: Form.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Form.pm,v
retrieving revision 2.10
retrieving revision 2.11
diff -u -r2.10 -r2.11
--- Form.pm 5 Feb 2002 01:33:11 -0000 2.10
+++ Form.pm 5 Feb 2002 08:33:08 -0000 2.11
@@ -1,6 +1,6 @@
# Vend::Form - Generate Form widgets
#
-# $Id: Form.pm,v 2.10 2002/02/05 01:33:11 mheins Exp $
+# $Id: Form.pm,v 2.11 2002/02/05 08:33:08 mheins Exp $
#
# Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
#
@@ -36,7 +36,7 @@
require Exporter;
@ISA = qw(Exporter);
-$VERSION = substr(q$Revision: 2.10 $, 10);
+$VERSION = substr(q$Revision: 2.11 $, 10);
@EXPORT = qw (
display
@@ -898,7 +898,7 @@
}
if($opt->{override}) {
- $opt->{value} = $opt->{default} || $opt->{override};
+ $opt->{value} = $opt->{default};
}
$opt->{default} = $opt->{value} if defined $opt->{value};
2.13 +6 -3 interchange/lib/Vend/Table/Common.pm
rev 2.13, prev_rev 2.12
Index: Common.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Table/Common.pm,v
retrieving revision 2.12
retrieving revision 2.13
diff -u -r2.12 -r2.13
--- Common.pm 4 Feb 2002 08:25:54 -0000 2.12
+++ Common.pm 5 Feb 2002 08:33:08 -0000 2.13
@@ -1,6 +1,6 @@
# Vend::Table::Common - Common access methods for Interchange databases
#
-# $Id: Common.pm,v 2.12 2002/02/04 08:25:54 mheins Exp $
+# $Id: Common.pm,v 2.13 2002/02/05 08:33:08 mheins Exp $
#
# Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
#
@@ -22,7 +22,7 @@
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA.
-$VERSION = substr(q$Revision: 2.12 $, 10);
+$VERSION = substr(q$Revision: 2.13 $, 10);
use strict;
package Vend::Table::Common;
@@ -354,7 +354,10 @@
unshift @$fary, $keyname;
unshift @$vary, $key;
}
- my @current = $s->row($key);
+ my @current;
+
+ @current = $s->row($key)
+ if $s->record_exists($key);
@current[ map { $s->column_index($_) } @$fary ] = @$vary;