HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Deleting a catalogue leaves behind orphaned catalogue entries

Title Deleting a catalogue leaves behind orphaned catalogue entries
Description This bug was introduced in version 3 when the method for handling deletions of categories was changed. Prior to version 3, deleting the categories would delete the entries, and thus the catalogue deletion code only needed to delete the categories and catalogue.
Affects All users
Fix Change line 265 of sources/catalogues2.php from:

Code

   // Delete anything involved (ha ha destruction!)
to:

Code

   // Delete anything involved (ha ha destruction!)
   $entries=collapse_1d_complexity('id',$GLOBALS['SITE_DB']->query_select('catalogue_entries',array('id'),array('c_name'=>$name)));
   foreach ($entries as $entry)
   {
      actual_delete_catalogue_entry($entry);
   }


Trackbacks

There have been no trackbacks yet

Edited