Add warning when tag search has been nullified by has_tags=False.
This commit is contained in:
		
							parent
							
								
									dd54eabd93
								
							
						
					
					
						commit
						75c8dccf1b
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -722,6 +722,8 @@ class PDBPhotoMixin: | ||||||
|         yield_photos = searchhelpers.normalize_yield_photos(yield_photos) |         yield_photos = searchhelpers.normalize_yield_photos(yield_photos) | ||||||
| 
 | 
 | ||||||
|         if has_tags is False: |         if has_tags is False: | ||||||
|  |             if (tag_musts or tag_mays or tag_forbids or tag_expression) and warning_bag: | ||||||
|  |                 warning_bag.add("has_tags=False so all tag requests are ignored.") | ||||||
|             tag_musts = None |             tag_musts = None | ||||||
|             tag_mays = None |             tag_mays = None | ||||||
|             tag_forbids = None |             tag_forbids = None | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue