1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed OverlayTrigger and Redirect Problem

Discussion in 'Resolved Bug Reports' started by ragtek, Apr 19, 2011.

  1. ragtek

    ragtek Guest

    I'm having a Button in a form, which opens a overlay.
    It's working fine if the controller returns the form.
    BUT in some cases, the controllers makes an redirect to an other page, instead of sending the overlay back.

    Is there any way of "stopping" the overlay and redirecting the browser?

    PHP:
       protected function _redirect($language_id$phrasePrefix){
            
    $link 'admin.php?language_id=' $language_id .
                    
    '&title=' $phrasePrefix '&phrase_state[]=default&phrase_state[]=inherited&phrase_state[]=custom&search=1&_=phrases%2Fsearch';
            return 
    $this->responseRedirect(
                    
    XenForo_ControllerResponse_Redirect::SUCCESS,
                    
    $link
            
    );
        }
    ...
    function ...(){

            if (
    count($languages) == 1){
                 return 
    $this->_redirect($language['language_id'], $phrasePrefix);
            }

            
    $viewParams = array(
                
    'languages' => $output,
                
    'phrasePrefix'    =>  $phrasePrefix,
            );
            return 
    $this->responseView('''ragtek_fw_languagechooser'$viewParams);
     
  2. ragtek

    ragtek Guest

  3. Kier

    Kier XenForo Developer Staff Member

    I'll look into it.
     
  4. Kier

    Kier XenForo Developer Staff Member

    Fix added to 1.0.2.
     
    Forsaken and ragtek like this.
  5. ajnos

    ajnos Member

    Yes, i can confirm that it's working now
     

Share This Page