mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 06:20:21 +00:00
no message
This commit is contained in:
1 parent
8b8bda2ca9
commit
56ab0176c1
1 file changed
+3
-3
@@ -26,12 +26,12 @@ class MasterTaskController extends Controller
|
||||
continue;
|
||||
}
|
||||
|
||||
// get last day of month based on year and month
|
||||
$lastDayOfMonth = date('t', strtotime($parameters['year'] . '-' . $parameters['month'] . '-01'));
|
||||
|
||||
switch ($field) {
|
||||
// deadline riesim, aby zobrazovalo aj mastertasky, ktore zacali v minulosti (v porovnani s prave zobrazenym mesiacom) ale deadline maju po tomto mesiaci
|
||||
case 'month':
|
||||
// get last day of month based on year and month
|
||||
$lastDayOfMonth = date('t', strtotime($parameters['year'] . '-' . $parameters['month'] . '-01'));
|
||||
|
||||
$mastertasks->whereDate('created_at', '<=',
|
||||
$parameters['year'] . '-' . $parameters['month'] . '-' . $lastDayOfMonth)
|
||||
->whereDate('deadline', '>=',
|
||||
|
||||
Reference in new issue
Block a user