code/WTTreeDropdownField.php
public function Link($action = null) {
                $name = $this->name;

                if (($pos = stripos($name, '[')) !== false) {

                        $name = substr($name, 0, $pos);
                        $action = substr($this->name, $pos + 1, strlen($this->name) - 1 - ($pos + 1)) . 'Tree';
                }

                return Controller::join_links($this->form->FormAction(), 'field/' . $name, $action);
        }
public function Link($action = null) {
                $name = $this->name;

                if (($pos = stripos($name, '[')) !== false) {

                        $name = substr($name, 0, $pos);
                        $action = substr($this->name, $pos + 1, strlen($this->name) - 1 - ($pos + 1)) . 'Tree';
                }

                return Controller::join_links($this->form->FormAction(), 'field/' . $name, $action);
        }
public function Link ( $ action = null ) { $ name = $ this -> name ; if ( ( $ pos = stripos ( $ name , '[' ) ) !== false ) { $ name = substr ( $ name , 0 , $ pos ) ; $ action = substr ( $ this -> name , $ pos + 1 , strlen ( $ this -> name ) - 1 - ( $ pos + 1 ) ) . 'Tree' ; } return Controller :: join_links ( $ this -> form -> FormAction ( ) , 'field/' . $ name , $ action ) ; }
Return a Link to this field
Return a Link to this field