Show
Ignore:
Timestamp:
07/27/2007 02:37:47 PM (16 months ago)
Author:
xue
Message:

Validators will not validate disabled controls

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/framework/Web/UI/WebControls/TBaseValidator.php

    r1791 r2100  
    486486                if($this->getVisible(true) && $this->getEnabled(true)) 
    487487                { 
    488                         if($this->getValidationTarget()) 
     488                        // if the target is not a disabled web control 
     489                        if(($target=$this->getValidationTarget())!==null && !($target instanceof TWebControl && !$target->getEnabled(true))) 
    489490                        { 
    490491                                if($this->evaluateIsValid())