HOTFIX
* fixes bug where detail view of KOM could not be opened anymore
This commit is contained in:
		
							parent
							
								
									3e593bd00e
								
							
						
					
					
						commit
						23c7a80bd7
					
				@ -490,7 +490,11 @@ class Compensation(AbstractCompensation, CEFMixin, CoherenceMixin, PikMixin):
 | 
			
		||||
        if self.is_recorded:
 | 
			
		||||
            retval = COMPENSATION_LANIS_LAYER_NAME_RECORDED
 | 
			
		||||
        else:
 | 
			
		||||
            is_old_entry = self.intervention.legal.binding_date < LKOMPVZVO_PUBLISH_DATE
 | 
			
		||||
            try:
 | 
			
		||||
                is_old_entry = self.intervention.legal.binding_date < LKOMPVZVO_PUBLISH_DATE
 | 
			
		||||
            except TypeError:
 | 
			
		||||
                is_old_entry = True
 | 
			
		||||
 | 
			
		||||
            if is_old_entry:
 | 
			
		||||
                retval = COMPENSATION_LANIS_LAYER_NAME_UNRECORDED_OLD_ENTRY
 | 
			
		||||
            else:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user