From 62cfd871b61531d1e8d3b41f3b96843d934f9226 Mon Sep 17 00:00:00 2001 From: jean Date: Tue, 28 Aug 2012 16:43:54 +1200 Subject: [PATCH] FIX 7819 Check if the current folder ID is in the url before assuming the list should not filter by folder ID --- code/controllers/AssetAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/AssetAdmin.php b/code/controllers/AssetAdmin.php index e71e6498..429454ee 100644 --- a/code/controllers/AssetAdmin.php +++ b/code/controllers/AssetAdmin.php @@ -95,7 +95,7 @@ JS // Don't filter list when a detail view is requested, // to avoid edge cases where the filtered list wouldn't contain the requested // record due to faulty session state (current folder not always encoded in URL, see #7408). - if($this->request->param('ID') == 'field') { + if(!$folder->ID && ($this->request->param('ID') == 'field')) { return $list; }