исправлен баг в админке при редактировании вознаграждений агентов
This commit is contained in:
parent
225d719768
commit
d8fea048d1
@ -35,12 +35,10 @@ public function getPaymentable(Complex $complex)
|
||||
'paymentable_type' => $this->getClassName(),
|
||||
'paymentable_id' => $this->id,
|
||||
'complex_id' => $complex->id,
|
||||
'value' => ($this->getClassName() == 'Company') ? null : ($this->defaultValue == -1 ? $this->setAsParentPayment($complex) : null)
|
||||
'value' => ($this->getClassName() == 'Company') ? null : -1
|
||||
]);
|
||||
break;
|
||||
case 1:
|
||||
return $paymentable->first();
|
||||
break;
|
||||
default:
|
||||
abort(404);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user