Category Deletion

Enter AlegroCart Bugs Here, but if you're not certain, post in General support first.
User avatar
leo
admin
Posts: 4263
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: Category Deletion

Post by leo » Thu Feb 14, 2013 12:48 pm

Try Brent's fix:

Code: Select all

	function delete_subcats($path){
		$sql = "delete category, category_description from category left join category_description on category.category_id = category_description.category_id where category.path like '?'";
		$this->database->query($this->database->parse($sql, $path . '\_%'));
	}
in /admin/model/products/model_admin_category.php

Bluesplayer
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm

Re: Category Deletion

Post by Bluesplayer » Thu Feb 14, 2013 12:55 pm

Working :D .

I hope you are updating the script with all these changes?

I am your unqualified bug hunter and script tester / alterer 8-) .

Well done.

Thanks
apet4life.co.uk

User avatar
leo
admin
Posts: 4263
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: Category Deletion

Post by leo » Thu Feb 14, 2013 1:13 pm

Thanks for the bug report.
We add a patch file to the download of the stable version. So, everybody can get rid of this issues.

Locked