protected function updateReview()
    {
        $submitted = $this->getSubmitted();

        if ($this->review->update($this->data_review['review_id'], $submitted)) {

            $message = $this->text('Review has been updated');

            if (empty($submitted['status'])) {
                $message = $this->text('Review has been updated and will be published after approval');
            }

            $this->redirect("product/{$this->data_product['product_id']}", $message, 'success');
        }

        $this->redirect("product/{$this->data_product['product_id']}");
    }
protected function updateReview()
    {
        $submitted = $this->getSubmitted();

        if ($this->review->update($this->data_review['review_id'], $submitted)) {

            $message = $this->text('Review has been updated');

            if (empty($submitted['status'])) {
                $message = $this->text('Review has been updated and will be published after approval');
            }

            $this->redirect("product/{$this->data_product['product_id']}", $message, 'success');
        }

        $this->redirect("product/{$this->data_product['product_id']}");
    }
protected function updateReview ( ) { $ submitted = $ this -> getSubmitted ( ) ; if ( $ this -> review -> update ( $ this -> data_review [ 'review_id' ] , $ submitted ) ) { $ message = $ this -> text ( 'Review has been updated' ) ; if ( empty ( $ submitted [ 'status' ] ) ) { $ message = $ this -> text ( 'Review has been updated and will be published after approval' ) ; } $ this -> redirect ( "product/{$this->data_product['product_id']}" , $ message , 'success' ) ; } $ this -> redirect ( "product/{$this->data_product['product_id']}" ) ; }
Updates a submitted review
Updates a submitted review