Changeset 2427

Show
Ignore:
Timestamp:
04/17/2008 12:18:25 PM (8 months ago)
Author:
tof
Message:

Implemented #745

Location:
trunk
Files:
3 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/HISTORY

    r2425 r2427  
    3636ENH: Ticket#741 - Added CDbConnection.currentTransaction property (Qiang) 
    3737ENH: Ticket#743 - Added status code header in HTTP response when in error (Qiang) 
     38ENH: Ticket#745 - TWizard action MoveTo - allow specify step ID's (Christophe) 
    3839ENH: Ticket#757 - TDateFormat and TNumberFormat now implement IDataRenderer (Qiang) 
    3940ENH: Ticket#783 - Added date/time type support to soap implementation (Hongliang) 
  • trunk/framework/Web/UI/WebControls/TWizard.php

    r1962 r2427  
    13931393                                if($this->_cancelNavigation)  // may be set in onSideBarButtonClick 
    13941394                                        $navParam->setCancelNavigation(true); 
    1395                                 $navParam->setNextStepIndex(TPropertyValue::ensureInteger($param->getCommandParameter())); 
     1395                                $requestedStep=$param->getCommandParameter(); 
     1396                                if (!is_numeric($requestedStep)) 
     1397                                { 
     1398                                        $requestedIndex=-1; 
     1399                                        foreach ($this->getWizardSteps() as $index=>$step) 
     1400                                                if ($step->getId()===$requestedStep) 
     1401                                                { 
     1402                                                        $requestedIndex=$index; 
     1403                                                        break; 
     1404                                                } 
     1405                                        if ($requestedIndex<0) 
     1406                                                throw new TConfigurationException('wizard_step_invalid'); 
     1407                                } 
     1408                                else 
     1409                                        $requestedIndex=TPropertyValue::ensureInteger($requestedStep); 
     1410                                $navParam->setNextStepIndex($requestedIndex); 
    13961411                                $handled=true; 
    13971412                        }