Bug #8854

Task #26664: Clean up Form ViewHelpers

Task #26658: Make Form ViewHelpers consistent

form.checkbox ViewHelper throws Exception in newAction

Added by Bastian Waidelich over 11 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Must have
Category:
ViewHelpers
Start date:
2010-07-14
Due date:
% Done:

100%

Estimated time:
Has patch:
No

Description

When using the form.checkbox ViewHelper in ObjectAccessorMode (bound to a property of the form object) this leads to an error when the form object is NULL (e.g. in the newAction) because the type of the property (array / boolean) can't be determined.
To avoid this issue, we need a new argument "multiple" that will make sure, that "[]" are appended to the checkbox field name.


Related issues

Related to TYPO3.Fluid - Task #9214: Improve handling of bound properties in checkbox, radio and select ViewHelpersClosedBastian Waidelich2010-08-09

Actions
Related to TYPO3 Core - Bug #61529: Cannot ensure checkbox for multiple valuesClosedMathias Brodala2014-09-11

Actions
Has duplicate TYPO3.Fluid - Task #6004: Checkbox viewHelper throws exception in "newAction" method.ClosedBastian Waidelich2010-01-13

Actions
#1

Updated by Bastian Waidelich over 11 years ago

  • Tracker changed from Feature to Bug
  • Subject changed from form.checkbox ViewHelper needs an "multiple" argument to form.checkbox & form.radio ViewHelpers do not work in newAction
  • Priority changed from Should have to Must have
#2

Updated by Bastian Waidelich over 11 years ago

  • % Done changed from 0 to 80
#3

Updated by Sebastian Kurfuerst over 10 years ago

  • Parent task set to #26658
#4

Updated by Robert Lemke over 10 years ago

  • Target version changed from 1.0 beta 2 to 1.0.0
#5

Updated by Karsten Dambekalns over 10 years ago

  • Target version deleted (1.0.0)
#6

Updated by Bastian Waidelich about 10 years ago

  • Subject changed from form.checkbox & form.radio ViewHelpers do not work in newAction to form.checkbox ViewHelper throws Exception in newAction
  • Target version set to 1.1
  • Has patch set to No
#7

Updated by Bastian Waidelich about 10 years ago

  • Tracker changed from Task to Bug
#8

Updated by Gerrit Code Review about 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7856

#9

Updated by Gerrit Code Review about 10 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7856

#10

Updated by Sebastian Kurfuerst about 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 80 to 100

Also available in: Atom PDF