mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 07:27:32 -05:00 
			
		
		
		
	Logging for Preview
This commit is contained in:
		
							parent
							
								
									83456a6016
								
							
						
					
					
						commit
						f4d7b1a631
					
				@ -206,11 +206,14 @@ class PreviewController extends BaseController
 | 
			
		||||
                info("company id = " . auth()->user()->company()->id);
 | 
			
		||||
 | 
			
		||||
                $entity_obj = $class::on(auth()->user()->company()->db)
 | 
			
		||||
                                    ->withTrashed()
 | 
			
		||||
                                    ->where('id', $this->decodePrimaryKey($request->input('entity_id')))
 | 
			
		||||
                                    ->where('company_id', auth()->user()->company()->id)
 | 
			
		||||
                                    ->withTrashed()
 | 
			
		||||
                                    ->first();
 | 
			
		||||
 | 
			
		||||
                if($entity_obj)
 | 
			
		||||
                    info("found a valid entity object");
 | 
			
		||||
                
 | 
			
		||||
                $entity_obj = $repo->save($request->all(), $entity_obj);
 | 
			
		||||
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user