mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get last day of month based on year and month
|
|
||||||
$lastDayOfMonth = date('t', strtotime($parameters['year'] . '-' . $parameters['month'] . '-01'));
|
|
||||||
|
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
// deadline riesim, aby zobrazovalo aj mastertasky, ktore zacali v minulosti (v porovnani s prave zobrazenym mesiacom) ale deadline maju po tomto mesiaci
|
// deadline riesim, aby zobrazovalo aj mastertasky, ktore zacali v minulosti (v porovnani s prave zobrazenym mesiacom) ale deadline maju po tomto mesiaci
|
||||||
case 'month':
|
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', '<=',
|
$mastertasks->whereDate('created_at', '<=',
|
||||||
$parameters['year'] . '-' . $parameters['month'] . '-' . $lastDayOfMonth)
|
$parameters['year'] . '-' . $parameters['month'] . '-' . $lastDayOfMonth)
|
||||||
->whereDate('deadline', '>=',
|
->whereDate('deadline', '>=',
|
||||||
|
|||||||
Reference in new issue
Block a user