Development

#2811 (sfFillInFilter doesn't populate array objects)

You must first sign up to be able to contribute.

Ticket #2811 (closed defect: fixed)

Opened 11 months ago

Last modified 7 months ago

sfFillInFilter doesn't populate array objects

Reported by: getmequick@gmail.com Assigned to: FabianLange
Priority: major Milestone: 1.0.14
Component: other Version: 1.0.11
Keywords: Cc:
Qualification: Accepted

Description

the

<?php echo input_tag('keywords[]') ?>

will not be populated, cause of it's *[] name,

I get the following errror Warning: DOMElement::setAttribute() expects parameter 2 to be string, array given in ...

Change History

02/23/08 23:36:25 changed by getmequick@gmail.com

  • version changed from 1.0.9 to 1.0.11.

will that be fixed?

05/01/08 13:21:35 changed by FabianLange

  • owner changed from fabien to FabianLange.
  • status changed from new to assigned.
  • qualification changed from Unreviewed to Accepted.
  • milestone set to 1.0.14.

i have a patch with a working solution, but i need to test it still.

05/01/08 13:31:33 changed by getmequick@gmail.com

btw, i have noticed that it works if I give indexes

e.g.

<?php echo input_tag('keywords[0]') ?>
<?php echo input_tag('keywords[1]') ?>
<?php echo input_tag('keywords[2]') ?>

though I think the code below should work too

<?php echo input_tag('keywords[]') ?>
<?php echo input_tag('keywords[]') ?>
<?php echo input_tag('keywords[]') ?>

05/01/08 14:19:06 changed by FabianLange

  • status changed from assigned to closed.
  • resolution set to fixed.

(In r8709) fillin now handles array notations like <input type="text" name "textinput[]"/> correctly. added 8 unit tests for that. fixes #2811 purpose.