Bug fixes

This commit is contained in:
Hillel Coren 2015-05-13 18:32:59 +03:00
parent 140943f166
commit 19c1a33d52
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class ApiCheck {
} }
if (!Utils::isNinja()) { if (!Utils::isNinja()) {
return null; return $next($request);
} }
if (!Utils::isPro()) { if (!Utils::isPro()) {

View File

@ -39,7 +39,7 @@ class UserMailer extends Mailer
return; return;
} }
$entityType = $invoice->getEntityType(); $entityType = $notificationType == 'approved' ? ENTITY_QUOTE : ENTITY_INVOICE;
$view = "{$entityType}_{$notificationType}"; $view = "{$entityType}_{$notificationType}";
$data = [ $data = [