mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 01:37:30 -04:00 
			
		
		
		
	Fixes for cleanly deleting and restoring users
This commit is contained in:
		
							parent
							
								
									3e86da3712
								
							
						
					
					
						commit
						e310118bf4
					
				| @ -48,7 +48,7 @@ class DeletedUserActivity implements ShouldQueue | ||||
| 
 | ||||
|         $fields = new \stdClass; | ||||
| 
 | ||||
|         if (auth()->user()->id) { | ||||
|         if (auth()->check()) { | ||||
|             $fields->user_id = auth()->user()->id; | ||||
|         } else { | ||||
|             $fields->user_id = $event->user->id; | ||||
|  | ||||
| @ -53,8 +53,12 @@ trait HasRecurrence | ||||
|      */ | ||||
|     public function setDayOfMonth($date, $day_of_month) | ||||
|     { | ||||
|         info($date); | ||||
| 
 | ||||
|         $carbon_date = Carbon::parse($date); | ||||
|          | ||||
|         info($carbon_date); | ||||
| 
 | ||||
|         $set_date = $carbon_date->copy()->setUnitNoOverflow('day', $day_of_month, 'month'); | ||||
| 
 | ||||
|         //If the set date is less than the original date we need to add a month.
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user