From 9e4b4d3a047f353085e0473cc94d48a5bb9b3df1 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 18 May 2015 18:51:50 +0200 Subject: [PATCH] Bug 14047: [QA Follow-up] Move result_class back into attributes Content-Type: text/plain; charset=utf-8 No need to put this into a separate call. Signed-off-by: Marcel de Rooy Note that we strictly speaking do not need the hashref inflator here, because TT understands hash.column as well as object.property. --- acqui/z3950_search.pl | 5 +++-- cataloguing/z3950_search.pl | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/acqui/z3950_search.pl b/acqui/z3950_search.pl index f0cdb81..b11c508 100755 --- a/acqui/z3950_search.pl +++ b/acqui/z3950_search.pl @@ -98,9 +98,10 @@ if ( $op ne "do_search" ) { recordtype => 'biblio', servertype => ['zed', 'sru'], }, - { order_by => ['rank', 'servername'],}, + { result_class => 'DBIx::Class::ResultClass::HashRefInflator', + order_by => ['rank', 'servername'], + }, ); - $rs->result_class('DBIx::Class::ResultClass::HashRefInflator'); $template->param( serverloop => [ $rs->all ], opsearch => "search", diff --git a/cataloguing/z3950_search.pl b/cataloguing/z3950_search.pl index 6a9b750..ebf5cda 100755 --- a/cataloguing/z3950_search.pl +++ b/cataloguing/z3950_search.pl @@ -78,9 +78,10 @@ if ( $op ne "do_search" ) { recordtype => 'biblio', servertype => ['zed', 'sru'], }, - { order_by => ['rank', 'servername'],}, + { result_class => 'DBIx::Class::ResultClass::HashRefInflator', + order_by => ['rank', 'servername'], + }, ); - $rs->result_class('DBIx::Class::ResultClass::HashRefInflator'); $template->param( serverloop => [ $rs->all ], opsearch => "search", -- 1.7.10.4