Merge branch 'master' of https://github.com/bagisto/bagisto into development

This commit is contained in:
rahul shukla 2021-01-27 14:07:35 +05:30
commit 5620817db2
7 changed files with 776 additions and 147 deletions

View File

@ -32,7 +32,7 @@
"intervention/image": "^2.4",
"intervention/imagecache": "^2.3",
"kalnoy/nestedset": "5.0.1",
"khaled.alshamaa/ar-php": "^5.5",
"khaled.alshamaa/ar-php": "^5.5.2",
"konekt/concord": "^1.2",
"laravel/framework": "^7.0",
"laravel/scout": "^8.0",

894
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -156,10 +156,7 @@ class InvoiceController extends Controller
*/
private function adjustArabicAndPersianContent($html)
{
/* temporary require */
require_once base_path('vendor/khaled.alshamaa/ar-php/src/arabic.php');
$arabic = new \ArPHP\I18N\arabic();
$arabic = new \ArPHP\I18N\Arabic();
$p = $arabic->arIdentify($html);

View File

@ -132,8 +132,9 @@ class Bundle extends AbstractType
public function update(array $data, $id, $attribute = "id")
{
$product = parent::update($data, $id, $attribute);
$route = request()->route() ? request()->route()->getName() : '';
if (request()->route()->getName() != 'admin.catalog.products.massupdate') {
if ($route != 'admin.catalog.products.massupdate') {
$this->productBundleOptionRepository->saveBundleOptons($data, $product);
}
@ -765,4 +766,4 @@ class Bundle extends AbstractType
return true;
}
}
}

View File

@ -95,8 +95,9 @@ class Configurable extends AbstractType
public function update(array $data, $id, $attribute = "id")
{
$product = parent::update($data, $id, $attribute);
if (request()->route()->getName() != 'admin.catalog.products.massupdate') {
$route = request()->route() ? request()->route()->getName() : '';
if ($route != 'admin.catalog.products.massupdate') {
$previousVariantIds = $product->variants->pluck('id');
if (isset($data['variants'])) {
@ -660,4 +661,4 @@ class Configurable extends AbstractType
return $total;
}
}
}

View File

@ -122,8 +122,9 @@ class Downloadable extends AbstractType
public function update(array $data, $id, $attribute = "id")
{
$product = parent::update($data, $id, $attribute);
$route = request()->route() ? request()->route()->getName() : '';
if (request()->route()->getName() != 'admin.catalog.products.massupdate') {
if ($route != 'admin.catalog.products.massupdate') {
$this->productDownloadableLinkRepository->saveLinks($data, $product);
$this->productDownloadableSampleRepository->saveSamples($data, $product);
@ -291,4 +292,4 @@ class Downloadable extends AbstractType
return $result;
}
}
}

View File

@ -96,8 +96,9 @@ class Grouped extends AbstractType
public function update(array $data, $id, $attribute = "id")
{
$product = parent::update($data, $id, $attribute);
$route = request()->route() ? request()->route()->getName() : '';
if (request()->route()->getName() != 'admin.catalog.products.massupdate') {
if ($route != 'admin.catalog.products.massupdate') {
$this->productGroupedProductRepository->saveGroupedProducts($data, $product);
}
@ -235,4 +236,4 @@ class Grouped extends AbstractType
return $products;
}
}
}