mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into develop
This commit is contained in:
commit
41739d8405
@ -99,11 +99,13 @@ class BaseAPIController extends Controller
|
|||||||
|
|
||||||
$query->with($includes);
|
$query->with($includes);
|
||||||
|
|
||||||
if ($updatedAt = intval(Input::get('updated_at'))) {
|
if (Input::get('updated_at') > 0) {
|
||||||
|
$updatedAt = intval(Input::get('updated_at'));
|
||||||
$query->where('updated_at', '>=', date('Y-m-d H:i:s', $updatedAt));
|
$query->where('updated_at', '>=', date('Y-m-d H:i:s', $updatedAt));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($clientPublicId = Input::get('client_id')) {
|
if (Input::get('client_id') > 0) {
|
||||||
|
$clientPublicId = Input::get('client_id');
|
||||||
$filter = function ($query) use ($clientPublicId) {
|
$filter = function ($query) use ($clientPublicId) {
|
||||||
$query->where('public_id', '=', $clientPublicId);
|
$query->where('public_id', '=', $clientPublicId);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user