Fix bug when POST'ing filter form data to edit schedule page
This commit is contained in:
		
							parent
							
								
									048951153d
								
							
						
					
					
						commit
						e57757d44b
					
				
					 1 changed files with 34 additions and 31 deletions
				
			
		| 
						 | 
					@ -60,6 +60,9 @@ class ScheduleView(TimeSheetView):
 | 
				
			||||||
                        if uuid:
 | 
					                        if uuid:
 | 
				
			||||||
                            data[field][uuid] = self.request.POST[key]
 | 
					                            data[field][uuid] = self.request.POST[key]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            # if no fields, don't apply changes (filter form uses POST also)
 | 
				
			||||||
 | 
					            if any(data.itervalues()):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                # apply delete operations
 | 
					                # apply delete operations
 | 
				
			||||||
                deleted = []
 | 
					                deleted = []
 | 
				
			||||||
                for uuid, value in data['delete'].iteritems():
 | 
					                for uuid, value in data['delete'].iteritems():
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue