[interchange-cvs] interchange - racke modified lib/Vend/Interpolate.pm
interchange-core@interchange.redhat.com
interchange-core@interchange.redhat.com
Tue Oct 9 15:24:02 2001
User: racke
Date: 2001-10-09 19:23:38 GMT
Modified: lib/Vend Tag: STABLE_4_8-branch Interpolate.pm
Log:
first fix for the problem reported by Brian Kosick <briank@nacs.net>
(query tag with more_alpha):
search_error can now safely called and more_alpha starts to work
however, you need to specify the right ORDER in the SQL statement
needs review and more testing
Revision Changes Path
No revision
No revision
2.9.2.3 +7 -2 interchange/lib/Vend/Interpolate.pm
rev 2.9.2.3, prev_rev 2.9.2.2
Index: Interpolate.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.9.2.2
retrieving revision 2.9.2.3
diff -u -r2.9.2.2 -r2.9.2.3
--- Interpolate.pm 2001/10/07 12:56:32 2.9.2.2
+++ Interpolate.pm 2001/10/09 19:23:36 2.9.2.3
@@ -1,6 +1,6 @@
# Vend::Interpolate - Interpret Interchange tags
#
-# $Id: Interpolate.pm,v 2.9.2.2 2001/10/07 12:56:32 racke Exp $
+# $Id: Interpolate.pm,v 2.9.2.3 2001/10/09 19:23:36 racke Exp $
#
# Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
#
@@ -27,7 +27,7 @@
require Exporter;
@ISA = qw(Exporter);
-$VERSION = substr(q$Revision: 2.9.2.2 $, 10);
+$VERSION = substr(q$Revision: 2.9.2.3 $, 10);
@EXPORT = qw (
@@ -5327,6 +5327,11 @@
if($opt->{ma}) {
# Find the sort field and alpha options....
Vend::Scan::parse_profile_ref($object, $opt);
+ # Contents of mv_return_fields must be of the same type
+ # (numeric here) as the contents of mv_sort_field
+ @{$object->{mv_return_fields}} = map {$nh->{$_}} @{$object->{mv_return_fields}};
+ # We need to turn the hash reference into a search object
+ $object = new Vend::Search (%$object);
# Delete this so it will meet conditions for creating a more
delete $object->{mv_matchlimit};
}