This project is read-only.
1

Closed

Unable to delete snippet

description

When trying to delete an item the site does not update and am unable to remove anything.

The snippet to delete is part of a group. Selecting delete single does nothing.

This is on the hosted CodeStash site.
Closed May 30, 2012 at 11:03 PM by ohanlonp
Confirmed as closed.

comments

ohanlonp wrote May 8, 2012 at 10:16 PM

Is this one of your snippets? If so, could you post the link to the snippet and I'll take a look into it?

Pete

db7uk wrote May 9, 2012 at 9:05 AM

Hi Pete,

Thanks for the response. This is linked to my account and not (I believe) visible to the public.

The url is http://www.codestash.co.uk/CodeSnippet/DisplaySnippetsForCategory?category=WCF

The one I was trying to delete was Id: 33.

I can edit it but not delete it.

Hope this helps.
Dan

ohanlonp wrote May 30, 2012 at 9:11 PM

OK, I think I've sorted this one now, if you want to give it a try. Basically, it was falling over because it was attempting to remove a group when there were still records attached to it. I've updated the code to check to see if there are any records left and, if there aren't, the grouping is removed.

db7uk wrote May 30, 2012 at 10:46 PM

I confirm this is now complete and works as intended.