[ v.2.8.2 ] Top Categories - impossible to delete

Please report bugs here!

Moderator: Thorsten

Post Reply
pt20100201
Posts: 134
Joined: Mon Feb 01, 2010 2:11 pm
Location: Porto . Portugal
Contact:

[ v.2.8.2 ] Top Categories - impossible to delete

Post by pt20100201 » Mon Nov 11, 2013 5:01 pm

[ v.2.8.2 ] Top Categories - impossible to delete
..
Dear Thorsten Rinne and Development Team
..
Some users reported that they can't delete the Top Categories (black Trash icon), but they are able to delete a Subcategory (red Trash icon)[1].

We tried to do replicate the problem with phpMyFAQ top administrator user and found the same issue.

Is this behavior a security feature or a "bug"?

In first scenario, what is the procedure to delete a Top Category? - only in the database?

Thank in advance.

[1] Screenshot : Top Category vs Subcategory - impossible vs possible to delete.
pt20100201-20131111-top-category-impossible-to-delete.png

[attachment=1]pt20100201-20131111-top-category-impossible-to-delete.png[/attachment]

..
Kind regards
2013-11-11
pt20100201
..
You do not have the required permissions to view the files attached to this post.
Last edited by pt20100201 on Tue Nov 19, 2013 9:12 pm, edited 2 times in total.

Thorsten
Posts: 15051
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: [ v.2.8.2 ] Top Categories - impossible to delete

Post by Thorsten » Thu Nov 14, 2013 5:20 pm

Hi,

you cannot delete a top level category if a second level category is present. Otherwise it would break the category tree.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

pt20100201
Posts: 134
Joined: Mon Feb 01, 2010 2:11 pm
Location: Porto . Portugal
Contact:

Re: [ v.2.8.2 ] Top Categories - impossible to delete

Post by pt20100201 » Tue Nov 19, 2013 9:12 pm

[ Solved ][ v.2.8.2 ] Top Categories - impossible to delete
..
Dear Thorsten Rinne

Thank to your quick answer.

There is another cause to the described situation:
  • the top category (or another) can't be deleted if it was created by a deleted or blocked user.
In this case, even the phpMyFAQ administrator can't delete that category on the web interface - only on the database.
However making changes on the DB may leave it at an unstable/unbalanced state.

So, a screenshot regarding this situation - an undeletable top category without subcategories and records - should have been present in the first post.

..
Kind regards
2013-11-18
pt20100201
..

Thorsten
Posts: 15051
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: [ v.2.8.2 ] Top Categories - impossible to delete

Post by Thorsten » Wed Nov 20, 2013 7:14 pm

Hi,

I checked the code, I cannot reproduce your issue, sorry. We do not store who created a category.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

pt20100201
Posts: 134
Joined: Mon Feb 01, 2010 2:11 pm
Location: Porto . Portugal
Contact:

Re2: [ v.2.8.2 ] Top Categories - impossible to delete

Post by pt20100201 » Thu Nov 21, 2013 5:19 am

Re2: [ v.2.8.2 ] Top Categories - impossible to delete
..
Dear Thorsten Rinne
Thorsten wrote:...
I checked the code, I cannot reproduce your issue, sorry. We do not store who created a category.
...
Thank for your time and answer.

The problem description wasn't good enough.

Imagine this scenario.

1.
1.1
  • "User A"
    • creates "Cat01" category ,
    • is the owner of "Cat01" ,
    • is deleted from phpMyFAQ or is at "blocked" state.

1.2
  • The system may
    • retain "Cat01" ownership (i.e., "User A"),
      or
    • may shift the ownership to another user ("User B").
  • "User B"
    • may or may not have permissions to perform category-related actions ,
    • isn't notified of the automatic change made by the system ,
    • if he doesn't have the correct permissions (and the knowledge to perform the needed actions correctly), the category's status may become undefined (or undeletable).
2.
The first user's impulse regarding a category deletion is to click on the trash icon,
not on the edit button (to see/review/change) the category status and information.

A more descriptive tooltip could be helpful in these situations.

Please take your time to analyze more relevant issues.


Some of our new (and "power") users have less simple questions - regarding this and other issues -, and frequently the information needed to reproduce it is missing.
..
Kind regards
2013-11-21
pt20100201
..

Thorsten
Posts: 15051
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: [ v.2.8.2 ] Top Categories - impossible to delete

Post by Thorsten » Thu Nov 21, 2013 7:48 am

Hi,

ah, now I understand and see the issue. I'll take a look at it how to solve.

Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply