mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Better inline editor.
This commit is contained in:
		| @@ -89,7 +89,7 @@ class HomeController extends Controller | ||||
|         $label         = $request->get('label'); | ||||
|         $isCustomRange = false; | ||||
| 
 | ||||
|         app('log')->debug('Received dateRange', ['start' => $stringStart, 'end' => $stringEnd, 'label' => $request->get('label')]); | ||||
|         app('log')->debug('dateRange: Received dateRange', ['start' => $stringStart, 'end' => $stringEnd, 'label' => $request->get('label')]); | ||||
|         // check if the label is "everything" or "Custom range" which will betray
 | ||||
|         // a possible problem with the budgets.
 | ||||
|         if ($label === (string)trans('firefly.everything') || $label === (string)trans('firefly.customRange')) { | ||||
| @@ -99,7 +99,7 @@ class HomeController extends Controller | ||||
| 
 | ||||
|         $diff          = $start->diffInDays($end, true) + 1; | ||||
| 
 | ||||
|         if ($diff > 50) { | ||||
|         if ($diff > 366) { | ||||
|             $request->session()->flash('warning', (string)trans('firefly.warning_much_data', ['days' => (int)$diff])); | ||||
|         } | ||||
| 
 | ||||
|   | ||||
| @@ -25,6 +25,7 @@ namespace FireflyIII\Support\Http\Controllers; | ||||
| 
 | ||||
| use Carbon\Carbon; | ||||
| use FireflyIII\Exceptions\FireflyException; | ||||
| use Illuminate\Support\Facades\Log; | ||||
| 
 | ||||
| /** | ||||
|  * Trait GetConfigurationData | ||||
| @@ -82,6 +83,8 @@ trait GetConfigurationData | ||||
|     { | ||||
|         $viewRange      = app('navigation')->getViewRange(false); | ||||
| 
 | ||||
|         Log::debug(sprintf('dateRange: the view range is "%s"', $viewRange)); | ||||
| 
 | ||||
|         /** @var Carbon $start */ | ||||
|         $start          = session('start'); | ||||
| 
 | ||||
| @@ -97,6 +100,7 @@ trait GetConfigurationData | ||||
|             // first range is the current range:
 | ||||
|             $title => [$start, $end], | ||||
|         ]; | ||||
|         Log::debug(sprintf('dateRange: the date range in the session is"%s" - "%s"', $start->format('Y-m-d'), $end->format('Y-m-d'))); | ||||
| 
 | ||||
|         // when current range is a custom range, add the current period as the next range.
 | ||||
|         if ($isCustom) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user