mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 17:34:30 -04:00
fixes for casts (#3382)
This commit is contained in:
parent
a74b644f6a
commit
628b77e369
@ -11,6 +11,7 @@
|
||||
|
||||
namespace App\Utils\Traits;
|
||||
|
||||
use App\DataMapper\BaseSettings;
|
||||
use App\DataMapper\CompanySettings;
|
||||
use App\DataMapper\FeesAndLimits;
|
||||
|
||||
@ -83,11 +84,13 @@ trait CompanyGatewayFeesAndLimitsSaver
|
||||
{
|
||||
$new_arr = [];
|
||||
|
||||
|
||||
foreach ($fees_and_limits as $key => $value) {
|
||||
$fal = new FeesAndLimits;
|
||||
|
||||
foreach ($value as $k => $v) {
|
||||
$fal->{$k} = $v;
|
||||
$fal->{$k} = BaseSettings::castAttribute(FeesAndLimits::$casts[$k], $v);
|
||||
}
|
||||
|
||||
$new_arr[$key] = (array)$fal;
|
||||
|
Loading…
x
Reference in New Issue
Block a user