Wiki Book Bug

xing • 27 Dec 2005 (13:24 UTC)
Bug Reports
i have just realised that version bitweaver 1.2 has a small, but potentially annoying bug. when you delete a page in a wiki book, it removes the actual page along with it, instead of just it's place in the book. the problem is easily fixed, and i don't think it warrants an extra release version. if you plan on using wiki books in any way, please read on

You have 2 options:

Option 1 - replace the file

You can replace the current version of liberty/LibertyStructure.php with this one:
download the zip file and extract it in your bitweaver root directory.

Option 2 - Edit the file manually

or you can manually modify the file in question:
liberty/LibertyStructure.php line 496:

<?php
494
$query "SELECT `content_id`
495: FROM `"
.BIT_DB_PREFIX."tiki_structures`
496: WHERE `structure_id`=?"
;
?>

should be changed to:

<?php
494
$query "SELECT `content_id`
495: FROM `"
.BIT_DB_PREFIX."tiki_structures`
496: WHERE `structure_id`=? AND `structure_id`=`root_structure_id`"
;
?>


sorry for the inconvenience,

xing