Hi all,
i finishing my module but:
If i call print_r('list_po'); i got printed only one last item ID. If i select all 3 items i got Id==3, but it must return array(1,2,3).
This is cms bug or my mistake?
my php looks like this:
//---------------------------------
$this->smarty->assign('list',
$this->CreateInputSelectList($id, 'list_po', $items, array(), 10, '', true)
);
//--------------------------------
html output looks:
pirmasantrastrecias
THANX!
Problem CreateInputSelectList returns only one item..
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Problem CreateInputSelectList returns only one item..
Use array syntax for multi select fields.
$this->smarty->assign('list',
$this->CreateInputSelectList($id, 'list_po[]', $items, array(), 10, '', true)
);
$this->smarty->assign('list',
$this->CreateInputSelectList($id, 'list_po[]', $items, array(), 10, '', true)
);
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.