mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Bug Fixes
This commit is contained in:
parent
50c5d52e08
commit
8a33f6fec6
@ -51,7 +51,7 @@ class PushService
|
|||||||
foreach($devices as $device)
|
foreach($devices as $device)
|
||||||
{
|
{
|
||||||
if(($device["notify_{$type}"] == TRUE) && ($device['device'] == 'ios'))
|
if(($device["notify_{$type}"] == TRUE) && ($device['device'] == 'ios'))
|
||||||
$this->pushMessage($invoice, $device['token'], $device["notify_{$type}"]);
|
$this->pushMessage($invoice, $device['token'], $type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -104,19 +104,19 @@ class PushService
|
|||||||
{
|
{
|
||||||
switch($type)
|
switch($type)
|
||||||
{
|
{
|
||||||
case 'notify_sent':
|
case 'sent':
|
||||||
return $this->entitySentMessage($invoice);
|
return $this->entitySentMessage($invoice);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'notify_paid':
|
case 'paid':
|
||||||
return $this->invoicePaidMessage($invoice);
|
return $this->invoicePaidMessage($invoice);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'notify_approved':
|
case 'approved':
|
||||||
return $this->quoteApprovedMessage($invoice);
|
return $this->quoteApprovedMessage($invoice);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'notify_viewed':
|
case 'viewed':
|
||||||
return $this->entityViewedMessage($invoice);
|
return $this->entityViewedMessage($invoice);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user