mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bug fixes
This commit is contained in:
parent
72d906d6d2
commit
44336fd7c4
@ -34,7 +34,7 @@ class StartupCheck
|
|||||||
|
|
||||||
// Ensure all request are over HTTPS in production
|
// Ensure all request are over HTTPS in production
|
||||||
if (Utils::requireHTTPS() && !Request::secure()) {
|
if (Utils::requireHTTPS() && !Request::secure()) {
|
||||||
//return Redirect::secure(Request::getRequestUri());
|
return Redirect::secure(Request::getRequestUri());
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the database doens't yet exist we'll skip the rest
|
// If the database doens't yet exist we'll skip the rest
|
||||||
|
@ -138,13 +138,13 @@ class InvoiceRepository extends BaseRepository
|
|||||||
|
|
||||||
if ($isNew) {
|
if ($isNew) {
|
||||||
$entityType = ENTITY_INVOICE;
|
$entityType = ENTITY_INVOICE;
|
||||||
if (isset($data['is_recurring']) && $data['is_recurring']) {
|
if (isset($data['is_recurring']) && filter_var($data['is_recurring'], FILTER_VALIDATE_BOOLEAN)) {
|
||||||
$entityType = ENTITY_RECURRING_INVOICE;
|
$entityType = ENTITY_RECURRING_INVOICE;
|
||||||
} elseif (isset($data['is_quote']) && $data['is_quote']) {
|
} elseif (isset($data['is_quote']) && filter_var($data['is_quote'], FILTER_VALIDATE_BOOLEAN)) {
|
||||||
$entityType = ENTITY_QUOTE;
|
$entityType = ENTITY_QUOTE;
|
||||||
}
|
}
|
||||||
$invoice = $account->createInvoice($entityType, $data['client_id']);
|
$invoice = $account->createInvoice($entityType, $data['client_id']);
|
||||||
if (isset($data['has_tasks']) && $data['has_tasks']) {
|
if (isset($data['has_tasks']) && filter_var($data['has_tasks'], FILTER_VALIDATE_BOOLEAN)) {
|
||||||
$invoice->has_tasks = true;
|
$invoice->has_tasks = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user