Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: 'null' category shown in product Relations  (Read 4658 times)

Offline junkyard

  • Full Member
  • ***
  • Posts: 127
  • Karma: +25/-0
    • View Profile
'null' category shown in product Relations
« on: October 17, 2013, 03:00:45 PM »
How to repeat:
1. Attach a product to >1 categories
2. Delete one or more categories from step 1
3. See 'null' categories are shown in the Product's Relations

We think, if some category has been deleted, it should be removed from the product Relations completely, rather than showing it as 'null'.
The latter logic might possibly affect something somewhere, that's why we're asking to check it in code ..
Thanks!

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4359
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: 'null' category shown in product Relations
« Reply #1 on: October 20, 2013, 12:18:51 PM »
Thank you. I agree. I think restriction of category removal is needed if there are products assigned to it.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4359
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: 'null' category shown in product Relations
« Reply #2 on: October 20, 2013, 01:15:39 PM »
I fixed this for 1.1.8. See this log and copy the file if you want

https://github.com/abantecart/abantecart-src/commit/34400fb6642320f67f3f93f0bf86344d69602114
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline junkyard

  • Full Member
  • ***
  • Posts: 127
  • Karma: +25/-0
    • View Profile
Re: 'null' category shown in product Relations
« Reply #3 on: October 21, 2013, 03:46:08 AM »
It works perfectly!  Deletion of a category automatically detached it from products assigned while keeping all other relations of the products intact.
Thank you!  This is very convenient to managing a shop where most of your products are tied to multiple categories.

 

Powered by SMFPacks Social Login Mod