View Issue Details

IDProjectCategoryView StatusLast Update
843RackTablesdefaultpublic2013-05-11 20:59
Reporterblaza-pl Assigned Toadoom42  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.20.4 
Target Version0.20.5Fixed in Version0.20.5 
Summary843: Bad search result when only one location matches
DescriptionNo search results are displayed when search results match only one location. User sees "Array" text.
Steps To ReproduceAdd new Location with unique name example: "location XXYYYZZ"
Search for XXYYYZZ
No results are displayed
Additional InformationI have created a patch to properly display this one location.
TagsNo tags attached.

Activities

blaza-pl

blaza-pl

2013-05-07 14:31

reporter  

search_single_location.patch (474 bytes)   
--- ./interface.php	2013-05-06 10:37:37.881257283 +0200
+++ ./interface.php	2013-05-07 08:10:35.789382806 +0200
@@ -3260,6 +3260,15 @@
 		else
 		{
 			startPortlet($realm);
+			if(is_array($record))
+			{
+				echo '<table border=0 cellpadding=5 cellspacing=0 align=center class=cooltable>';
+				echo "<tr class=row_odd><td class=tdleft>";
+				renderCell ($record);
+				echo "</td></tr>";
+				echo '</table>';
+			}
+			else
 			echo $record;
 			finishPortlet();
 		}
adoom42

adoom42

2013-05-11 20:59

administrator   ~0001393

Thanks for the patch.

Issue History

Date Modified Username Field Change
2013-05-07 14:31 blaza-pl New Issue
2013-05-07 14:31 blaza-pl File Added: search_single_location.patch
2013-05-11 20:59 adoom42 Note Added: 0001393
2013-05-11 20:59 adoom42 Assigned To => adoom42
2013-05-11 20:59 adoom42 Status new => closed
2013-05-11 20:59 adoom42 Resolution open => fixed
2013-05-11 20:59 adoom42 Fixed in Version => 0.20.5
2013-05-11 20:59 adoom42 Target Version => 0.20.5