mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 09:12:11 +01:00 
			
		
		
		
	Fix the amount history in the button update page
This commit is contained in:
		@@ -121,7 +121,7 @@ class TransactionTemplateUpdateView(ProtectQuerysetMixin, LoginRequiredMixin, Up
 | 
				
			|||||||
            for log in update_logs.all():
 | 
					            for log in update_logs.all():
 | 
				
			||||||
                old_dict = json.loads(log.previous)
 | 
					                old_dict = json.loads(log.previous)
 | 
				
			||||||
                new_dict = json.loads(log.data)
 | 
					                new_dict = json.loads(log.data)
 | 
				
			||||||
                if not "amount" in old_price:
 | 
					                if "amount" not in old_dict:
 | 
				
			||||||
                    # The amount price of the button was not modified in this changelog
 | 
					                    # The amount price of the button was not modified in this changelog
 | 
				
			||||||
                    continue
 | 
					                    continue
 | 
				
			||||||
                old_price = old_dict["amount"]
 | 
					                old_price = old_dict["amount"]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user