VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: Oliver Griffiths on November 23, 2007, 10:47:21 AM

Title: [FIXED] Parent/child category save issue
Post by: Oliver Griffiths on November 23, 2007, 10:47:21 AM
 Hi,

I noticed a bug in build 1046 that when you save/update a category that has a parent, that information is not saved.

Ive identified the problem in ps_product_category.php on line 236/324 that

$d['parent_category_id']

should be

$d['category_parent_id']

Hope this helps.

Oli
Title: Re: Build 1046 Parent category not saved when clicking save
Post by: jenkinhill on November 23, 2007, 18:18:03 PM
Using rev 1049 the child category is saved OK. But if the child is subsequently edited it is saved as parent (top level) category. This happens despite the correct parent being selected in the category edit page before saving.

Database Version: 4.1.22
PHP Version: 4.4.4
Web Server: Apache
VirtueMart 1.1: Ver. 1049
Joomla! Version: Joomla! 1.0.13 Stable [ Sunglow ]
and
Joomla! Version: Joomla! 1.5 Beta3+ Rev 9328 9 November
Title: Re: [CONFIRMATION REQUIRED] Parent/child category save issue
Post by: aravot on December 03, 2007, 01:25:15 AM
Confirmed in rev 1070