1
phillipd
FAQ module doesn't display Q and A's after deleting a FAQ
  • 2004/7/16 21:17

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


When you delete an question/answer in a category, the rest of the questions and answers dont display properly until you exit the category and re-enter. The problem appears to be in admin/index.php in the delcontent code on thle line:

xoops_confirm(array('op' => 'delcontents', 'id' => $id, 'ok' => 1), 'index.php', _XD_RUSURECAT);

You need to add the "cat_id" in to pass to the listcontents code. Which makes the line:

xoops_confirm(array('op' => 'delcontents', 'cat_id' => $cat_id, 'id' => $id, 'ok' => 1), 'index.php', _XD_RUSURECAT);

Regards

Doug P

Login

Who's Online

363 user(s) are online (291 user(s) are browsing Support Forums)


Members: 0


Guests: 363


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits