Update to 2.3

This commit is contained in:
Lars Thegler 2004-08-08 19:23:33 +00:00
parent 75236c0e70
commit cd823528f4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115678
3 changed files with 7 additions and 10 deletions

View File

@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= Class-DBI-AsForm
PORTVERSION= 2.2
PORTVERSION= 2.3
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Class
@ -27,9 +27,6 @@ MAN3= Class::DBI::AsForm.3
.if ${PERL_LEVEL} < 500600
EXTRA_PATCHES= ${PATCHDIR}/500503-AsForm.pm
post-configure:
${PERL} -pi -e 's,/usr/local/,\$$(PREFIX)/,g' ${WRKSRC}/Makefile
.endif
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
MD5 (Class-DBI-AsForm-2.2.tar.gz) = 09a3824bfbf260f2b12583828dce5068
SIZE (Class-DBI-AsForm-2.2.tar.gz) = 3558
MD5 (Class-DBI-AsForm-2.3.tar.gz) = 158e2f3eb51f10bedbf36e5199802f9a
SIZE (Class-DBI-AsForm-2.3.tar.gz) = 3825

View File

@ -16,8 +16,8 @@
+use vars qw(@ISA);@ISA = qw(Exporter);
+use vars qw(@EXPORT);@EXPORT = qw( to_cgi to_field _to_textarea _to_textfield _to_select
type_of );
-our $VERSION = '2.2';
+use vars qw($VERSION);$VERSION = '2.2';
-our $VERSION = '2.3';
+use vars qw($VERSION);$VERSION = '2.3';
=head1 NAME
@ -42,8 +42,8 @@
for (@objs) {
my $sel = HTML::Element->new("option", value => $_->id);
$sel->attr("selected" => "selected") if ref $self
- and eval { $_->id == $self->$col->id };
+ and eval { $_->id == $self->$col()->id };
- and eval { $_->id eq $self->$col->id };
+ and eval { $_->id eq $self->$col()->id };
$sel->push_content($_->stringify_self);
$a->push_content($sel);
}