View Issue Details

IDProjectCategoryView StatusLast Update
0004967mantisbtfilterspublic2005-04-18 10:34
ReporterThox Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Versiongit trunk 
Summary0004967: DHTML filter loading does not handle advanced filters effectively
Description

Using 0004315 , "$g_dhtml_filters = ON" and looking at the results of an advanced filtered query.

See attached screenshots.

The DHTML filter should show the advanced filter input field and populate all of the current selected items into it. Currently it loads the simple filter input (dropdown) and populates only one of the selected items.

TagsNo tags attached.
Attached Files
dhtml-filter-view_type-patch.diff (739 bytes)   
***************
*** 101,107 ****

  	name = this.id;
  	liveReq.onreadystatechange = function(){liveReqProcessReqChange(name);};
! 	liveReq.open("GET", processURI + "?filter_target=" + this.id);

  	// show "Loading..." while waiting
  	document.getElementById(this.id+'_target').innerHTML = string_loading;
--- 101,110 ----

  	name = this.id;
  	liveReq.onreadystatechange = function(){liveReqProcessReqChange(name);};
! 	view_type = document.getElementById('filters_form')['view_type'].value;
! 	uri = processURI + "?view_type=" + view_type + "&filter_target=" + this.id;
!
! 	liveReq.open("GET", uri);

  	// show "Loading..." while waiting
  	document.getElementById(this.id+'_target').innerHTML = string_loading;

Relationships

child of 0004937 closedvboctor Mantis 1.0.0a1 Release 

Activities

Thox

Thox

2004-12-13 05:24

reporter   ~0008591

Attached diff for javascript\dynamic_filters.js to fix this issue (the querystring "view_type" was not being sent to the page.

thraxisp

thraxisp

2004-12-13 17:10

reporter   ~0008610

Fixed in CVS.

The filters display properly now, but switching between simple and advanced takes you through the view_filters_page.