Skip to content
This repository
Browse code

FIX 7819 Check if the current folder ID is in the url before assuming…

… the list should not filter by folder ID
  • Loading branch information...
commit 62cfd871b61531d1e8d3b41f3b96843d934f9226 1 parent 149de5e
Jean-Fabien authored August 28, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  code/controllers/AssetAdmin.php
2  code/controllers/AssetAdmin.php
@@ -95,7 +95,7 @@ public function getList() {
95 95
 		// Don't filter list when a detail view is requested,
96 96
 		// to avoid edge cases where the filtered list wouldn't contain the requested
97 97
 		// record due to faulty session state (current folder not always encoded in URL, see #7408).
98  
-		if($this->request->param('ID') == 'field') {
  98
+		if(!$folder->ID && ($this->request->param('ID') == 'field')) {
99 99
 			return $list;
100 100
 		}
101 101
 

0 notes on commit 62cfd87

Please sign in to comment.
Something went wrong with that request. Please try again.