mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:17:32 -05:00 
			
		
		
		
	Fixes for company settings saver
This commit is contained in:
		
							parent
							
								
									61d0276147
								
							
						
					
					
						commit
						ea30be3a51
					
				@ -194,7 +194,7 @@ trait CompanySettingsSaver
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            //try casting floats here
 | 
					            //try casting floats here
 | 
				
			||||||
            if($value == 'float'){
 | 
					            if($value == 'float' && property_exists($settings, $key)){
 | 
				
			||||||
                $settings->{$key} = floatval($settings->{$key});
 | 
					                $settings->{$key} = floatval($settings->{$key});
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -74,7 +74,7 @@
 | 
				
			|||||||
        {{-- Feel free to push anything to header using @push('header') --}}
 | 
					        {{-- Feel free to push anything to header using @push('header') --}}
 | 
				
			||||||
        @stack('head')
 | 
					        @stack('head')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        @if((bool) \App\Utils\Ninja::isSelfHost() && !empty($client->getSetting('portal_custom_head')))
 | 
					        @if((isset($account) && $account->isPaid()) || ((bool) \App\Utils\Ninja::isSelfHost() && !empty($client->getSetting('portal_custom_head'))))
 | 
				
			||||||
            <div class="py-1 text-sm text-center text-white bg-primary">
 | 
					            <div class="py-1 text-sm text-center text-white bg-primary">
 | 
				
			||||||
                {!! $client->getSetting('portal_custom_head') !!}
 | 
					                {!! $client->getSetting('portal_custom_head') !!}
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user