[Fix] Behebt Problem bei HTML/CSS Editor Aufruf aus Frontend. Bei diesm Funktionsaufruf wird keine Website zum Filtern der Views im Request gesetzt
							parent
							
								
									4d75366a29
								
							
						
					
					
						commit
						ecd40fa57f
					
				|  | @ -41,7 +41,11 @@ class IrUiView(models.Model): | |||
|         views = super(IrUiView, self).get_related_views( | ||||
|             key, bundles=bundles | ||||
|         ) | ||||
|         current_website = request.website | ||||
| 
 | ||||
|         current_website = request and hasattr(request, 'website') and request.website or None | ||||
|         if current_website is None: | ||||
|             return views | ||||
| 
 | ||||
|         return views.filtered(lambda v: v.website_id == current_website) | ||||
| 
 | ||||
|     @api.multi | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue