Page 1 of 1
					
				Bug in tank management?
				Posted: Mon Mar 26, 2012 10:34 pm
				by Boris
				After re-editing some dives I deleted an unused tank (in "Manage tanks and gases") - it was a tank in the middle of the list. After that all dives showed the wrong tank in the gas management tab. Can someone reproduced this? Did I do something wrong?
Boris
			 
			
					
				Re: Bug in tank management?
				Posted: Tue Mar 27, 2012 2:58 am
				by nick
				Unfortunately there's not much to go on here. I would need you to send me your MacDive.sqlite file before the issue, along with steps to replicate it, to see what you are meaning/describing.
When you delete a tank from Tank Management, then of course that tank no longer exists - so no dives will have it. They will likely default to "No Tank". Is that what you are seeing?
They shouldn't be getting a different tank, just the tank they have would be deleted.
			 
			
					
				Re: Bug in tank management?
				Posted: Tue Mar 27, 2012 3:35 am
				by Boris
				nick wrote:Unfortunately there's not much to go on here. I would need you to send me your MacDive.sqlite file before the issue, along with steps to replicate it, to see what you are meaning/describing.
 I found a copy of the database before the changes, but I can't replicate the behaviour.
When you delete a tank from Tank Management, then of course that tank no longer exists - so no dives will have it. They will likely default to "No Tank". Is that what you are seeing?
They shouldn't be getting a different tank, just the tank they have would be deleted.
 Yes, of course 

 In my case I had three types of tanks A (80 ft^3), B (80 ft^3; double) and C (something) und used them all in gas and tank management section. I replaced all uses of tank B by tank A, used the "Double Tank" checkbox and deleted tank B. After that some dives had tank C in the tank management. It looked like as if the tanks were referenced by an index (in this case 2) and the tank at index 2 was tanks C after my edits.
Probably I was just confused and I can't replicate it. So, just forget it.
Boris
 
			 
			
					
				Re: Bug in tank management?
				Posted: Tue Mar 27, 2012 4:32 pm
				by nick
				Ok. Well if you can replicate the issue, send me your data and some steps so I can take a look!