Browse Source

Fixed null value

proxy_request
Daan Geurts 5 years ago
parent
commit
3444ad06ba
  1. 8
      src/model/NotificationPayload.php

8
src/model/NotificationPayload.php

@ -51,8 +51,12 @@ class NotificationPayload
$instance->autoRenewStatusChangeDate = $request->input('auto_renew_status_change_date'); $instance->autoRenewStatusChangeDate = $request->input('auto_renew_status_change_date');
$instance->autoRenewStatusChangeDatePst = $request->input('auto_renew_status_change_date_pst'); $instance->autoRenewStatusChangeDatePst = $request->input('auto_renew_status_change_date_pst');
$instance->autoRenewStatusChangeDateMs = $request->input('auto_renew_status_change_date_ms'); $instance->autoRenewStatusChangeDateMs = $request->input('auto_renew_status_change_date_ms');
foreach ($request->input('pending_renewal_info') as $pendingRenewalInfo) { if ($request->has('pending_renewal_info')) {
$instance->pendingRenewalInfo[] = RenewalInfo::createFromRequest($pendingRenewalInfo); foreach ($request->input('pending_renewal_info') as $pendingRenewalInfo) {
$instance->pendingRenewalInfo[] = RenewalInfo::createFromRequest($pendingRenewalInfo);
}
} else {
$instance->pendingRenewalInfo = null;
} }
return $instance; return $instance;

Loading…
Cancel
Save