Changeset 742

Show
Ignore:
Timestamp:
08/25/08 14:57:38 (3 months ago)
Author:
zak
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/Form/Field.php

    r741 r742  
    453453        foreach($this->getValueList() as $value=>$descr){ 
    454454            // Check if a separator is not needed identified with _separator< 
    455             if ($value != '_separator') { 
     455            if ($value == '_separator') { 
     456                $output.= 
     457                    $this->getTag('option',array( 
     458                            'disabled'=>'disabled', 
     459                        )) 
     460                    .htmlspecialchars($descr) 
     461                    .$this->getTag('/option');  
     462            } else { 
    456463                $output.= 
    457464                    $this->getTag('option',array( 
     
    460467                        )) 
    461468                    .htmlspecialchars($descr) 
    462                     .$this->getTag('/option'); 
    463             } else { 
    464                 $output.= 
    465                     $this->getTag('option',array( 
    466                             'disabled'=>'disabled', 
    467                         )) 
    468                     .htmlspecialchars($descr) 
    469                     .$this->getTag('/option');                 
     469                    .$this->getTag('/option');               
    470470            } 
    471471        }