protected function setDataAuthorEditProduct()
    {
        $user_id = $this->getData('product.user_id');

        if (!empty($user_id)) {
            $user = $this->user->get($user_id);
            $this->setData('product.author', $user['email']);
        }
    }
protected function setDataAuthorEditProduct()
    {
        $user_id = $this->getData('product.user_id');

        if (!empty($user_id)) {
            $user = $this->user->get($user_id);
            $this->setData('product.author', $user['email']);
        }
    }
protected function setDataAuthorEditProduct ( ) { $ user_id = $ this -> getData ( 'product.user_id' ) ; if ( ! empty ( $ user_id ) ) { $ user = $ this -> user -> get ( $ user_id ) ; $ this -> setData ( 'product.author' , $ user [ 'email' ] ) ; } }
Sets the product author data
Sets the product author data