Changeset 269 for trunk/trax/vendor/trax/action_view
- Timestamp:
- 10/31/06 18:44:25 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_view/helpers/form_options_helper.php
r243 r269 121 121 . htmlspecialchars($choice_value) 122 122 . "\" selected=\"selected\">" 123 . htmlspecialchars( $choice_text)."</option>";123 . htmlspecialchars(is_object($choice_text) ? $choice_text->__toString() : $choice_text)."</option>"; 124 124 } else { 125 125 $options[] = "<option value=\"" 126 126 . htmlspecialchars($choice_value) 127 127 . "\">" 128 . htmlspecialchars( $choice_text)."</option>";128 . htmlspecialchars(is_object($choice_text) ? $choice_text->__toString() : $choice_text)."</option>"; 129 129 } 130 130 } … … 157 157 foreach($collection as $object) { 158 158 if(is_object($object)) { 159 $options[$object->send($attribute_value)] =160 $object->send($attribute_text);159 //$options[$object->send($attribute_value)] = $object->send($attribute_text); 160 $options[$object->$attribute_value] = $object->$attribute_text; 161 161 } 162 162 }
