Project

General

Profile

Actions

Bug #17296

closed

piVars does not support arrays

Added by Christian Boltz over 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2007-05-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I just learned the hard way that piVars does not support arrays.

Create a frontend plugin with a <select multiple> field, add some options and select some of them. Then submit the form.

<form>
<select name="tx_foobar][select][]" size="5" multiple>
<option value="1">option 1</option><option value="2">option 2</option><option value="3" selected>option 3</option>
</select>
<input name="save" type="submit" value="save">
</form>

Expected result:
piVars['select'] is an array which contains the selected items

Actual result:
piVars['select'] contains the string "array" :-(

Unfortunately there is no other way to handle <select multiple> than using an array AFAIK.

(issue imported from #M5604)

Actions

Also available in: Atom PDF