mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Fixed the tests.
This commit is contained in:
		| @@ -96,14 +96,12 @@ class PiggyBank | ||||
|      */ | ||||
|     public function storePiggyBank(\PiggyBank $piggyBank) | ||||
|     { | ||||
|         if (intval($piggyBank->repeats) == 0) { | ||||
|             $repetition = new \PiggyBankRepetition; | ||||
|             $repetition->piggyBank()->associate($piggyBank); | ||||
|             $repetition->startdate     = $piggyBank->startdate; | ||||
|             $repetition->targetdate    = $piggyBank->targetdate; | ||||
|             $repetition->currentamount = 0; | ||||
|             $repetition->save(); | ||||
|         } | ||||
|         $repetition = new \PiggyBankRepetition; | ||||
|         $repetition->piggyBank()->associate($piggyBank); | ||||
|         $repetition->startdate     = $piggyBank->startdate; | ||||
|         $repetition->targetdate    = $piggyBank->targetdate; | ||||
|         $repetition->currentamount = 0; | ||||
|         $repetition->save(); | ||||
|     } | ||||
|  | ||||
|     /* | ||||
|   | ||||
		Reference in New Issue
	
	Block a user