Loading...
 
Skip to main content

Default Object Category

Status
Open
Subject
Default Object Category
Version
6.x
Category
  • Error
  • Usability
Feature
Category
Staging and Approval
Submitted by
epaik
Lastmod by
Marc Laporte
Rating
(0)
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.

Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Please demonstrate your bug on show2.tiki.org
Demonstrate Bug (older Tiki versions)
 Show.tiki.org is currently unavailable

Unable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.

Ticket ID
3754
Created
Friday 21 January, 2011 20:08:18 GMT-0000
by epaik
LastModif
Wednesday 16 March, 2011 01:40:42 GMT-0000