Forumlar / Cotonti / Support / possible bug ???

diablo
#36979 2013-02-06 22:40

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)))

 

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."

Bu konu diablo tarafından düzenlendi(2013-02-06 23:12, 11 yıllar önce)