Skip to content

Commit e42ed7a

Browse files
Issue #135 fixed
1 parent a9844ac commit e42ed7a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/Webkul/Admin/src/Resources/views/quotes/create.blade.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
$quote->fill([
1414
'person_id' => $lead->person_id,
1515
'user_id' => $lead->user_id,
16-
'billing_address' => $lead->person->organization ? $lead->person->organization->address : []
16+
'billing_address' => $lead->person->organization ? $lead->person->organization->address : null
1717
]);
1818
}
1919
@endphp
@@ -91,14 +91,14 @@
9191

9292
@include('admin::common.custom-attributes.edit', [
9393
'customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')
94-
->scopeQuery(function($query){
95-
return $query
96-
->where('entity_type', 'quotes')
97-
->whereIn('code', [
98-
'billing_address',
99-
'shipping_address',
100-
]);
101-
})->get(),
94+
->scopeQuery(function($query){
95+
return $query
96+
->where('entity_type', 'quotes')
97+
->whereIn('code', [
98+
'billing_address',
99+
'shipping_address',
100+
]);
101+
})->get(),
102102
'entity' => $quote,
103103
])
104104

0 commit comments

Comments
 (0)