parent
							
								
									e058f2bdad
								
							
						
					
					
						commit
						74904d8505
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -679,8 +679,8 @@ class SimpleDataForm(DataForm, DataRecord): | ||||||
|                     f.value = '' |                     f.value = '' | ||||||
|                 # Keep all required fields |                 # Keep all required fields | ||||||
|                 continue |                 continue | ||||||
|             if (hasattr(f, 'value') and not f.value) or (hasattr(f, 'values') \ |             if (hasattr(f, 'value') and not f.value and f.value != 0) or ( | ||||||
|             and len(f.values) == 0): |             hasattr(f, 'values') and len(f.values) == 0): | ||||||
|                 to_be_removed.append(f) |                 to_be_removed.append(f) | ||||||
|             else: |             else: | ||||||
|                 del f.label |                 del f.label | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue