Skip to content

Commit

Permalink
Allow for the proper display of product options that use text or text…
Browse files Browse the repository at this point in the history
…area

widgets by showing the actual value if a label doesn't exist for the value.
  • Loading branch information
pajamian committed Nov 9, 2007
1 parent 87f201f commit eda2fac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions WHATSNEW-5.5
Expand Up @@ -53,6 +53,9 @@ Core
the "include_depth" Limit etc.) but I felt that that was an unnecessary
overhead.

* Allow for the proper display of product options that use text or textarea
widgets by showing the actual value if a label doesn't exist for the value.

UI
--

Expand Down
6 changes: 3 additions & 3 deletions lib/Vend/Form.pm
@@ -1,6 +1,6 @@
# Vend::Form - Generate Form widgets
#
# $Id: Form.pm,v 2.71 2007-08-10 12:05:34 racke Exp $
# $Id: Form.pm,v 2.72 2007-11-09 03:08:31 pajamian Exp $
#
# Copyright (C) 2002-2007 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
Expand Down Expand Up @@ -39,7 +39,7 @@ use vars qw/@ISA @EXPORT @EXPORT_OK $VERSION %Template %ExtraMeta/;
require Exporter;
@ISA = qw(Exporter);

$VERSION = substr(q$Revision: 2.71 $, 10);
$VERSION = substr(q$Revision: 2.72 $, 10);

@EXPORT = qw (
display
Expand Down Expand Up @@ -299,7 +299,7 @@ sub current_label {
$default = $label if $label =~ s/\*$//;
return ($label || $setting) if $val eq $setting;
}
return $default;
return $val || $default;
}

sub links {
Expand Down

0 comments on commit eda2fac

Please sign in to comment.