1
Venezia
xoopstree.php selbox - subcategories not ordered
  • 2004/5/13 3:42

  • Venezia

  • Just popping in

  • Posts: 36

  • Since: 2003/6/24


From the original post:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=19822&forum=28

Bug: Selbox items are only ordered at root level.

Fix:

File:xoopstree.php,
Function: function makeMySelBox($title,$order="",$preset_id=0, $none=0, $sel_name="", $onchange="")

~line 170

Change from:

$arr = $this->getChildTreeArray($catid);

to:

$arr = $this->getChildTreeArray($catid, $order);

Explanation: Pass on the $order parameter to the getChildTreeArray() call.

Venezia





2
Herko
Re: xoopstree.php selbox - subcategories not ordered
  • 2004/5/13 6:40

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Great, thanks. Can you submit this patch to the sourceforge.net XOOPS project tracker, so the core devs can look at it and add it to the core? Thanks!

Herko

Login

Who's Online

292 user(s) are online (229 user(s) are browsing Support Forums)


Members: 0


Guests: 292


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