original_string: protected function saveProductBundle()
      {
          $this->controlAccess('product_bundle_edit');
  
          $product_id = $this->getSubmitted('product_id');
          $products = $this->getSubmitted('products', array());
  
          if ($this->product_bundle->set($product_id, $products)) {
              $this->redirect('admin/content/product', $this->text('Product bundle has been updated'), 'success');
          }
  
          $this->redirect('', $this->text('Product bundle has not been updated'), 'warning');
      }
code: protected function saveProductBundle()
      {
          $this->controlAccess('product_bundle_edit');
  
          $product_id = $this->getSubmitted('product_id');
          $products = $this->getSubmitted('products', array());
  
          if ($this->product_bundle->set($product_id, $products)) {
              $this->redirect('admin/content/product', $this->text('Product bundle has been updated'), 'success');
          }
  
          $this->redirect('', $this->text('Product bundle has not been updated'), 'warning');
      }
code_tokens: protected function saveProductBundle ( ) { $ this -> controlAccess ( 'product_bundle_edit' ) ; $ product_id = $ this -> getSubmitted ( 'product_id' ) ; $ products = $ this -> getSubmitted ( 'products' , array ( ) ) ; if ( $ this -> product_bundle -> set ( $ product_id , $ products ) ) { $ this -> redirect ( 'admin/content/product' , $ this -> text ( 'Product bundle has been updated' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Product bundle has not been updated' ) , 'warning' ) ; }
docstring: Saves a product bundle
docstring_tokens: Saves a product bundle