mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
Small bugfix regarding groupEdits
This commit is contained in:
parent
eca32e6d6e
commit
f442555156
@ -127,6 +127,8 @@ final class MatrixProductGateway
|
||||
}
|
||||
|
||||
public function GetArticleOptionIdsByGroupIds(int|array $groupIds) : array {
|
||||
if (empty($groupIds))
|
||||
return [];
|
||||
$sql = "SELECT id FROM matrixprodukt_eigenschaftenoptionen WHERE gruppe IN (:ids)";
|
||||
return $this->db->fetchCol($sql, ['ids' => $groupIds]);
|
||||
}
|
||||
@ -267,6 +269,8 @@ final class MatrixProductGateway
|
||||
|
||||
public function GetVariantIdsByOptions(int|array $optionIds) : array
|
||||
{
|
||||
if (empty($optionIds))
|
||||
return [];
|
||||
$sql = "SELECT artikel FROM matrixprodukt_optionen_zu_artikel WHERE option_id IN (:ids)";
|
||||
return $this->db->fetchCol($sql, ['ids' => $optionIds]);
|
||||
}
|
||||
|
@ -60,6 +60,10 @@ function onSave() {
|
||||
onClose();
|
||||
}
|
||||
|
||||
function onGroupSave() {
|
||||
location.reload();
|
||||
}
|
||||
|
||||
function onClose() {
|
||||
model.value = null;
|
||||
}
|
||||
@ -67,8 +71,8 @@ function onClose() {
|
||||
|
||||
<template>
|
||||
<template v-if="model">
|
||||
<AddGlobalToArticle v-if="model.action === 'addGlobalToArticle'" v-bind="model" @close="onClose" @save="onSave" />
|
||||
<GroupEdit v-else-if="model.action === 'groupEdit'" v-bind="model" @close="onClose" @save="onSave" />
|
||||
<AddGlobalToArticle v-if="model.action === 'addGlobalToArticle'" v-bind="model" @close="onClose" @save="onGroupSave" />
|
||||
<GroupEdit v-else-if="model.action === 'groupEdit'" v-bind="model" @close="onClose" @save="onGroupSave" />
|
||||
<OptionEdit v-else-if="model.action === 'optionEdit'" v-bind="model" @close="onClose" @save="onSave" />
|
||||
<Variant v-else-if="model.action === 'variantEdit'" v-bind="model" @close="onClose" @save="onSave" />
|
||||
<Translation v-else-if="model.action === 'translationEdit'" v-bind="model" @close="onClose" @save="onSave" />
|
||||
|
File diff suppressed because one or more lines are too long
2
www/dist/manifest.json
vendored
2
www/dist/manifest.json
vendored
@ -7,7 +7,7 @@
|
||||
"css": [
|
||||
"assets/entry-597722a1.css"
|
||||
],
|
||||
"file": "assets/modules/MatrixProduct-e3c4dfba.js",
|
||||
"file": "assets/modules/MatrixProduct-8ac5c604.js",
|
||||
"isEntry": true,
|
||||
"src": "classes/Modules/MatrixProduct/www/js/entry.jsx"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user