cotonti.com : possible bug ??? https://www.cotonti.com Последние сообщения в теме Cotonti en Sat, 10 Jan 2026 20:45:30 -0000 Trustmaster A fix is highly appreciated :)

]]>
чт, 07 фев 2013 08:14:05 -0000
diablo hi

 

i was working on a project and needed a structure dropdown for a custom search plugin.. Then i noticed a problem about  the function cot_selectbox_structure

its 4th variable is subcat and it doesnt seem to have any effect on the function. it says it will only show the subcategory in list but it does nothing..

i tried it on page_add.tpl aswell and its still the same

 

{PAGEADD_FORM_CAT_SHORT} and {PAGEADD_FORM_CAT} returns the same thing.

 

can anyone confirm this so we can put it on github ?

Added 5 minutes later:

ok i found the problem :D

forms.php line 392

if ($display && !empty($subcat) && isset($structure[$extension][$subcat]) || !(empty($check)))

 

]]>
ср, 06 фев 2013 22:40:33 -0000