Skip to content

Commit

Permalink
Invoice action not shown when invoicing enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
pradpnayak committed Apr 24, 2020
1 parent 53ad44b commit 3193624
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CRM/Contribute/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ public static function tasks() {
}

// remove action "Invoices - print or email"
$invoiceSettings = Civi::settings()->get('contribution_invoice_settings');
$invoicing = $invoiceSettings['invoicing'] ?? NULL;
$invoicing = CRM_Invoicing_Utils::isInvoicingEnabled();
if (!$invoicing) {
unset(self::$_tasks[self::PDF_INVOICE]);
}
Expand Down

0 comments on commit 3193624

Please sign in to comment.