Merge pull request #3039 from rahulcs0082/development

Development
This commit is contained in:
Jitendra Singh 2020-05-11 16:36:00 +05:30 committed by GitHub
commit 8df7fbc23b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -341,7 +341,7 @@
<div class="summary-comment-container">
<div class="comment-container">
<form action="{{ route('admin.sales.orders.comment', $order->id) }}" method="post">
<form action="{{ route('admin.sales.orders.comment', $order->id) }}" method="post" @submit.prevent="onSubmit">
@csrf()
<div class="control-group" :class="[errors.has('comment') ? 'has-error' : '']">

View File

@ -56,7 +56,9 @@ class Simple extends AbstractType
public function haveSufficientQuantity($qty)
{
$backorders = core()->getConfigData('catalog.inventory.stock_options.backorders');
$backorders = ! is_null ($backorders) ? $backorders : false;
return $qty <= $this->totalQuantity() ? true : $backorders;
}
}