Task #5636 » radioProperty-5636.diff
Classes/ViewHelpers/Form/RadioViewHelper.php | ||
---|---|---|
90 | 90 |
$nameAttribute = $this->getName(); |
91 | 91 |
$valueAttribute = $this->getValue(); |
92 | 92 |
if ($checked === NULL && $this->isObjectAccessorMode()) { |
93 |
$propertyValue = $this->getPropertyValue(); |
|
94 |
// no type-safe comparisation by intention |
|
95 |
$checked = $propertyValue == $valueAttribute; |
|
93 |
try { |
|
94 |
$propertyValue = $this->getPropertyValue(); |
|
95 |
// no type-safe comparisation by intention |
|
96 |
$checked = $propertyValue == $valueAttribute; |
|
97 |
} catch (Tx_Fluid_Core_ViewHelper_Exception_InvalidVariableException $ex) { |
|
98 |
$checked = FALSE; |
|
99 |
} |
|
96 | 100 |
} |
97 | 101 | |
98 | 102 |
$this->registerFieldNameForFormTokenGeneration($nameAttribute); |
- « Previous
- 1
- 2
- 3
- Next »