mirror of
				https://github.com/OrchardCMS/Orchard.git
				synced 2025-10-26 20:16:15 +08:00 
			
		
		
		
	Fixed search function when searching inside the "Recent" folder. (#8568)
This commit is contained in:
		 Andrea Piovanelli
					Andrea Piovanelli
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							520dc06b46
						
					
				
				
					commit
					64fad63e02
				
			| @@ -203,8 +203,11 @@ $(function () { | ||||
|                     var mediaItems = data.mediaItems; | ||||
|                     var mediaItemsFolderPath = data.folderPath; | ||||
|  | ||||
|                     if (mediaItemsFolderPath !== self.displayed()) { | ||||
|                         return; | ||||
|                     // When searching on "Recent" folder self.displayed() is null and mediaItemsFolderPath is a empty string. | ||||
|                     if (!(mediaItemsFolderPath == '' && self.displayed() == null)) { | ||||
|                         if (mediaItemsFolderPath !== self.displayed()) { | ||||
|                             return; | ||||
|                         } | ||||
|                     } | ||||
|  | ||||
|                     self.mediaItemsCount = data.mediaItemsCount; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user