mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:07:32 -05:00 
			
		
		
		
	Fix to enforce TYPE
enforce boolean response rather than numeric, ie true:false vs 1:0
This commit is contained in:
		
							parent
							
								
									e4852a0169
								
							
						
					
					
						commit
						9f5b33e74a
					
				@ -31,7 +31,7 @@ class ActivityTransformer extends EntityTransformer
 | 
				
			|||||||
            'credit_id' => $activity->credit ? $activity->credit->public_id : null,
 | 
					            'credit_id' => $activity->credit ? $activity->credit->public_id : null,
 | 
				
			||||||
            'updated_at' => $this->getTimestamp($activity->updated_at),
 | 
					            'updated_at' => $this->getTimestamp($activity->updated_at),
 | 
				
			||||||
            'expense_id' => $activity->expense_id ? $activity->expense->public_id : null,
 | 
					            'expense_id' => $activity->expense_id ? $activity->expense->public_id : null,
 | 
				
			||||||
            'is_system' => (bool) $activity->is_system ? $activity->is_system : null,
 | 
					            'is_system' => $activity->is_system ? (bool) $activity->is_system : null,
 | 
				
			||||||
            'contact_id' => $activity->contact_id ? $activity->contact->public_id : null
 | 
					            'contact_id' => $activity->contact_id ? $activity->contact->public_id : null
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user