Default Object Category
- Status
- Closed
- Subject
- Default Object Category
- Version
- 6.x
- Category
- Error
- Usability
- Feature
- Category
Staging and Approval - Resolution status
- Fixed or Solved
- Submitted by
- epaik
- Lastmod by
- Ushindi Gedeon
- Rating
- Description
In group settings, there is an option to set a default category for any uncategorized objects edited by the object. This feature does not work.
- Solution
Every time a page is edited, there is a call to create_staging in tiki-editpage.php
Inside this function (create_staging), there's another call to update_object_categories in categlib.php.
This update_object_categories function checks if any categories have been set. If not, it called get_user_group_default_category to find a the user's default category and appropiately set the object's category.
Now this is all fine and good, except for the fact that update_object_categories is never called because it is in a conditional block.
In order for update_object_categories to be called in create_staging, several unrelated features must be enabled, such as feature_wikiapproval.
I may have completely misinterpreted the code, seeing as I'm relatively new to php. If i'm completely wrong about this not working, please let me know how to get it working, because I've been trying to get default categorization of objects for ages now.
- Workaround
- Importance
- 7
- Priority
- 35
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3754
- Created
- Friday 21 January, 2011 20:08:18 UTC
by epaik - LastModif
- Tuesday 30 June, 2026 14:30:55 UTC