pipedrive / client-php

Pipedrive API client for PHP
MIT License
49 stars 57 forks source link

updateAPerson and other updates don't consider custom fields #29

Closed Robertkowski closed 3 years ago

Robertkowski commented 3 years ago

only this fields will be changed:

        $_parameters = array (
            'name'       => $this->val($options, 'name'),
            'owner_id'   => $this->val($options, 'ownerId'),
            'org_id'     => $this->val($options, 'orgId'),
            'email'    => array_values($this->val($options, 'email')),
            'phone'    => array_values($this->val($options, 'phone')),
            'visible_to' => APIHelper::prepareFormFields($this->val($options, 'visibleTo'))
        );
alex-bukach commented 3 years ago

@Robertkowski looks a duplicate of https://github.com/pipedrive/client-php/issues/15. There's a pull request containing a fix.

ziimk commented 3 years ago

Thank you for the patience and suggestions. The changes implemented in https://github.com/pipedrive/client-php/pull/48 should fix the issues with updating custom fields in deals, persons and organizations endpoints.

As mentioned above, this is a duplicate of #15 , so closing it