Articles & submissions: categorization of the submission can be corrupted
- Status
- Closed
- Subject
- Articles & submissions: categorization of the submission can be corrupted
- Version
- 1.9.x
- Category
- Error
- Feature
- Article
Category - Resolution status
- Fixed or Solved
- Submitted by
- tibi
- Lastmod by
- Marc Laporte
- Rating
- Description
i have a problem with categorization.
when i add a new article. an old article in the tiki_categorized_objects got overwritten.
the objid and the href gets the new article id.
the result is that the old article losses its cat and the new article has the both.when i take out the update in the method:
approve_submission
all is fine again:catelib.php:
function approve_submission($subId, $articleId) {
$query = "update `tiki_categorized_objects` set `type`= ?, `objId`= ?, `href`=? where `objId` = ?";
//$this->query($query, array('article', (int)$articleId, "tiki-read_article.php?articleId=$articleId", (int)$subId));
}what i find strange is the $subid at the end.
i'm not sure what the method is for. probably i broke something else.
i must add. i added a the category right in the database.
i added the articles by hand to the tiki_categorzed_objects
and added the category by using the topics from the article's.- Solution
Bug fix: approved articles inherit only the categorization of the submission, not of other objects that happen to share an ID with the submission
<- Fixed by Laurent Moss on May 10th 2007, and will be in Tiki 1.9.8
- Importance
- 2
- Priority
- 10
- 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
- 1032
- Created
- Friday 09 March, 2007 22:34:02 UTC
by Unknown - LastModif
- Monday 26 November, 2007 02:29:16 UTC