Skip to content

Commit ee3dfbd

Browse files
committed
[#1983][#1906] Fixing bad prototype vars method calls on FormView
1 parent 9a77129 commit ee3dfbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cookbook/form/form_collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ new "tag" forms. To render it, make the following change to your template:
321321

322322
.. code-block:: html+php
323323

324-
<ul class="tags" data-prototype="<?php echo $view->escape($view['form']->row($form['tags']->get('prototype'))) ?>">
324+
<ul class="tags" data-prototype="<?php echo $view->escape($view['form']->row($form['tags']->vars['prototype'])) ?>">
325325
...
326326
</ul>
327327

reference/forms/types/collection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ collection field:
300300
301301
.. code-block:: php
302302
303-
<?php echo $view['form']->row($form['emails']->getVar('prototype')) ?>
303+
<?php echo $view['form']->row($form['emails']->vars['prototype']) ?>
304304
305305
Note that all you really need is the "widget", but depending on how you're
306306
rendering your form, having the entire "form row" may be easier for you.

0 commit comments

Comments
 (0)