pipedrive / client-php

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

Fix due date for update activity mapping #34

Closed mykhailo-riabokon closed 3 years ago

mykhailo-riabokon commented 3 years ago

Problem

updateEditAnActivity did not take into account dueDate as autocreated mapping was incorrect.

How to test

// should update a due date for an existing activity 
$query['dueDate'] = new DateTime('2021-04-02');
$query['id'] = '<an existing activity id>';

$client->getActivities()->updateEditAnActivity($query);   

Related PRs: https://github.com/pipedrive/client-php/pull/28