[gen] Bugfix: display bilingual info in object history.
This commit is contained in:
		
							parent
							
								
									a671094167
								
							
						
					
					
						commit
						441dc0b423
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -663,7 +663,8 @@ class BaseMixin: | |||
|                 continue | ||||
|             # In some cases the old value must be formatted. | ||||
|             if field.type == 'Ref': | ||||
|                 previousData[name] = [r.title for r in previousData[name]] | ||||
|                 previousData[name] = [r.o.getShownValue('title') \ | ||||
|                                       for r in previousData[name]] | ||||
|             elif field.type == 'String': | ||||
|                 languages = field.getAttribute(self, 'languages') | ||||
|                 if len(languages) > 1: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gaetan Delannay
						Gaetan Delannay