Bug #4027
options-argument of the SelectViewHelper should not be optional
Status: | Resolved | Start date: | 2009-07-28 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Bastian Waidelich | % Done: | 100% |
|
Category: | ViewHelpers | |||
Target version: | 1.0.0 alpha 3 | |||
Has patch: | Affected Flow version: |
Description
The SelectViewHelper expects $this->arguments['options'] to be an array. A Select field without options wouldn't make sense anyways. So the options-argument should be required.
Associated revisions
[+FEATURE] Fluid (Core): Added "not equal" Comparator. Now you can use booleanArgument="{foo} != {bar}" in your template
[TASK] Fluid (Core): Whitespace- and doc comment tweaks in ViewHelperNode, TagBuilder, EmailViewHelper amd ThenViewHelper
[~TASK] Fluid (ViewHelpers): AbstractFormViewHelper: Renamed method "getObjectValue" to "getPropertyValue". Moved method "addErrorStyleClass" from TextBoxViewHelper up to AbstractFormViewHelper and renamed it to "setErrorClassAttribute". Some cleanups and performance tweaks
[+FEATURE] Fluid (ViewHelpers): AbstractFormViewHelper: Added attribute "errorClass" to form view helpers "Select", "Textarea" and "Upload". They all are able to visualize validation errors now
[~TASK] Fluid (ViewHelpers): ErrorsViewHelper: Replaced "!=" with typesafe comparator "!=="
[+FEATURE] Fluid (ViewHelpers): Added attributes "disabled" to all visual FormViewHelpers
[~BUGFIX] Fluid (ViewHelpers): SelectViewHelper: "options" argument is no longer optional. Fixes #4027
[TASK] Fluid (ViewHelpers): SelectViewHelper: Fixed some documentation typos
[+FEATURE] Fluid (ViewHelpers): Added attribute "disabled" to all visual FormViewHelpers
[TASK] Fluid (ViewHelpers): FormViewHelper: Renamed "uuid" to "identifier" to pave the way for backporting
[~FEATURE] Fluid (ViewHelpers): ForViewHelper: Added more fine-granular support for objects implementing \Traversable. If the given array contains no keys or is an object that does not implement the \Iterator interface, the key will contain the numerical index, just like in PHPs foreach
[TASK] Fluid (ViewHelpers): LayoutViewHelper: Added isset-check to viewHelperArguments in postParseEvent() to avoid PHP notices (mainly to ease creation of unit tests)
[+FEATURE] Fluid (ViewHelpers): Link ActionViewHelper now really supports rendering of absolute URIs. This might be useful e.g. in email templates. See r2868
[~BUGFIX] Fluid (ViewHelpers): Email Uri ViewHelper no longer creates a link tag. This resolves #4028
[~BUGFIX] Fluid (ViewHelpers): External Uri ViewHelper does not extend TagBasedViewHelper but AbstractViewHelper
[+TASK] Fluid: Wrote a lot of test cases, covering all of the ViewHelpers and some of the core classes. More to come!
History
#1 Updated by Bastian Waidelich about 6 years ago
- Subject changed from option argument of the SelectViewHelper should not be optional to options-argument of the SelectViewHelper should not be optional
#2 Updated by Bastian Waidelich about 6 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset r2914.