Skip to content

Commit

Permalink
Update path mapping for updateCardCustomField method
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenmaguire committed Mar 27, 2018
1 parent 77a85b6 commit 9938003
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

All Notable changes to `trello-php` will be documented in this file

## 0.5.2 - 2018-03-26

### Added
- Nothing

### Deprecated
- Nothing

### Fixed
- Fixed path mapping for updateCardCustomField method

### Removed
- Nothing

### Security
- Nothing

## 0.5.1 - 2018-03-26

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/ApiMethodsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ trait ApiMethodsTrait
'updateCardLabel' => ['put', 'cards/%s/labels'],
'deleteCardLabel' => ['delete', 'cards/%s/labels/%s'],
'getCardCustomField' => ['get', 'cards/%s/customField/%s'],
'updateCardCustomField' => ['put', 'cards/%s/customField/%s'],
'updateCardCustomField' => ['put', 'cards/%s/customField/%s/item'],
'getCardList' => ['get', 'cards/%s/list'],
'getCardListField' => ['get', 'cards/%s/list/%s'],
'addCardMarkAssociatedNotificationsRead' => ['post', 'cards/%s/markAssociatedNotificationsRead'],
Expand Down
2 changes: 1 addition & 1 deletion tests/ApiTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ public function testUpdateCardCustomField()
$customFieldId = $this->getTestString();
$attributes = $this->getTestAttributes();
$payload = $this->getSuccessPayload();
$this->prepareFor("PUT", sprintf("/cards/%s/customField/%s", $cardId, $customFieldId), "", $payload);
$this->prepareFor("PUT", sprintf("/cards/%s/customField/%s/item", $cardId, $customFieldId), "", $payload);

$result = $this->client->updateCardCustomField($cardId, $customFieldId, $attributes);

Expand Down

0 comments on commit 9938003

Please sign in to comment.