Skip to content

Commit

Permalink
rpc/unredeemIssue, getIncidentTypes: drop unused $customer_id
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Sep 6, 2017
1 parent 1615fe7 commit 2dc60d0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/RPC/RemoteApi.php
Expand Up @@ -975,9 +975,6 @@ public function unredeemIssue($issue_id, $types)
$prj_id = Issue::getProjectID($issue_id);
AuthCookie::setProjectCookie($prj_id);

// FIXME: $customer_id unused
$customer_id = Issue::getCustomerID($issue_id);

if (!CRM::hasCustomerIntegration($prj_id)) {
// no customer integration
throw new RemoteApiException("No customer integration for issue #$issue_id");
Expand Down Expand Up @@ -1021,8 +1018,6 @@ public function getIncidentTypes($issue_id, $redeemed_only)
{
$prj_id = Issue::getProjectID($issue_id);
AuthCookie::setProjectCookie($prj_id);
// FIXME: $customer_id unused
$customer_id = Issue::getCustomerID($issue_id);

if (!CRM::hasCustomerIntegration($prj_id)) {
// no customer integration
Expand Down

0 comments on commit 2dc60d0

Please sign in to comment.