mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Include user group in test set.
This commit is contained in:
		| @@ -107,8 +107,7 @@ class ShowController extends Controller | ||||
|         /** @var User $user */ | ||||
|         $user            = auth()->user(); | ||||
|         $manager         = $this->getManager(); | ||||
|         $defaultCurrency = app('amount')->getDefaultCurrencyByUserGroup($user->userGroup); | ||||
|         $this->parameters->set('defaultCurrency', $defaultCurrency); | ||||
|         $this->parameters->set('defaultCurrency', $this->defaultCurrency); | ||||
| 
 | ||||
|         // update fields with user info.
 | ||||
|         $currency->refreshForUser($user); | ||||
| @@ -135,7 +134,7 @@ class ShowController extends Controller | ||||
|         /** @var User $user */ | ||||
|         $user        = auth()->user(); | ||||
|         $manager     = $this->getManager(); | ||||
|         $currency    = app('amount')->getDefaultCurrencyByUserGroup($user->userGroup); | ||||
|         $currency    = $this->defaultCurrency; | ||||
| 
 | ||||
|         // update fields with user info.
 | ||||
|         $currency->refreshForUser($user); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user