Red Gate forums :: View topic - Bug: Incorrect step deleted
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

Bug: Incorrect step deleted

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
lee5i3



Joined: 16 Jul 2010
Posts: 38

PostPosted: Fri Jul 26, 2013 4:51 pm    Post subject: Bug: Incorrect step deleted Reply with quote

I have 3 steps in my project.
I choose to delete step 3, it is actually deleting the first step!

And I think I see why...

Each step is in a form
Code:
<form id="delete">


And the "delete" button is doing
Code:
$('#delete').submit();

Looks like JQuery is choosing the first form since they all have the same id
Back to top
View user's profile Send private message
lee5i3



Joined: 16 Jul 2010
Posts: 38

PostPosted: Fri Jul 26, 2013 5:07 pm    Post subject: Reply with quote

I'm thinking it should be something like
Code:
$(this).parent().submit();
Back to top
View user's profile Send private message
csmith



Joined: 30 Jun 2011
Posts: 117
Location: Cambridge

PostPosted: Mon Jul 29, 2013 2:45 pm    Post subject: Reply with quote

Hi Lee,

Thanks for the post - and your investigation! We are going to look at that asap, and will update this post when we know when the fix will be shipped.

Best regards,
Chris
_________________
Chris Smith
Project Manager
Deployment Manager
Back to top
View user's profile Send private message
DavidSimner



Joined: 04 Feb 2010
Posts: 49

PostPosted: Mon Jul 29, 2013 4:59 pm    Post subject: Reply with quote

Hi Lee,

Sorry!

I've updated our JavaScript to use:

Code:
$(this).parents('form').submit();


Which is slightly different from yours -- it has the advantage that it'll continue working if we ever change the HTML to add a DIV in the DOM between the FORM and the A for example.

Thanks for the bug report -- the fix should ship on Wednesday this week (all being well)...

David
Back to top
View user's profile Send private message
lee5i3



Joined: 16 Jul 2010
Posts: 38

PostPosted: Mon Jul 29, 2013 6:56 pm    Post subject: Reply with quote

Sounds good, was more just giving an idea. Smile

Figure a bug report with a possible fix would be helpful.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group