Task #5636 » radioProperty-5636.diff

try/catch ( - Peter Niederlag, 2011-02-03 18:30

View differences:

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);
(3-3/3)