From 2afad57758af8521a2d5d3ba84c9a2cee84f4689 Mon Sep 17 00:00:00 2001 From: Yung Han Khoe Date: Tue, 22 Apr 2008 22:09:30 +0000 Subject: [PATCH] fixed: Thingy: search result "sort by" not working --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/Thingy.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index c897deacc..58e42eaf2 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -30,6 +30,7 @@ - fixed: When latest Thing is removed from a Thingy only a drag button is displayed - fixed: Thingy: thing view screen always displays all fields + - fixed: Thingy: search result "sort by" not working 7.5.10 diff --git a/lib/WebGUI/Asset/Wobject/Thingy.pm b/lib/WebGUI/Asset/Wobject/Thingy.pm index 0ea33b27f..b24f9c093 100644 --- a/lib/WebGUI/Asset/Wobject/Thingy.pm +++ b/lib/WebGUI/Asset/Wobject/Thingy.pm @@ -2245,7 +2245,7 @@ sub www_search { return $session->privilege->insufficient() unless $self->hasPrivileges($thingProperties{groupIdSearch}); $doSearch = $session->form->process("doSearch"); - $orderBy = $session->form->process("orderBy"); + $orderBy = $session->form->process("orderBy") || $thingProperties{sortBy}; $var = $self->get; $url = $self->getUrl;