Show
Ignore:
Timestamp:
10/31/06 18:44:25 (6 years ago)
Author:
john
Message:

minor fix to AC for the browser_url

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/action_view/helpers/form_options_helper.php

    r243 r269  
    121121                    . htmlspecialchars($choice_value) 
    122122                    . "\" selected=\"selected\">" 
    123                     . htmlspecialchars($choice_text)."</option>"; 
     123                    . htmlspecialchars(is_object($choice_text) ? $choice_text->__toString() : $choice_text)."</option>"; 
    124124                } else { 
    125125                    $options[] = "<option value=\"" 
    126126                    . htmlspecialchars($choice_value) 
    127127                    . "\">" 
    128                     . htmlspecialchars($choice_text)."</option>"; 
     128                    . htmlspecialchars(is_object($choice_text) ? $choice_text->__toString() : $choice_text)."</option>"; 
    129129                }                         
    130130            }     
     
    157157            foreach($collection as $object) { 
    158158                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; 
    161161                } 
    162162            }