u
This commit is contained in:
@@ -175,8 +175,10 @@ SELECT auth.*,
|
||||
'attributeValue', av.value
|
||||
)), '[]') FROM article child
|
||||
LEFT JOIN articletext at_child ON at_child.article_id = child.id AND at_child.language_id = auth.languageId
|
||||
LEFT JOIN articleattributevalue aav ON aav.article_id = child.id
|
||||
LEFT JOIN attributevalue av ON av.id = aav.attributevalue_id AND av.attribute_id = a.fatherattributename_id
|
||||
LEFT JOIN (
|
||||
articleattributevalue aav
|
||||
INNER JOIN attributevalue av ON av.id = aav.attributevalue_id AND av.attribute_id = a.fatherattributename_id
|
||||
) ON aav.article_id = child.id
|
||||
WHERE child.fatherarticle_id = a.id
|
||||
ORDER BY child.fathersort ASC, child.id ASC)),
|
||||
'categoryIdsJson', json(${JSON_CATEGORIES}),
|
||||
|
||||
@@ -4,7 +4,7 @@ import { translateQueries } from './translate.js';
|
||||
const queries = translateQueries(source, 'articleDelete');
|
||||
export const {
|
||||
DELETE_ARTICLELIST, DELETE_BY_ID, DELETE_OPTIONSLIST, GET_CHILD_COUNT,
|
||||
GET_LIST_IDS,
|
||||
GET_CHILDREN_IDS, GET_LIST_IDS,
|
||||
} = queries;
|
||||
|
||||
export const DELETE_PICS_BY_ARTICLE = `
|
||||
|
||||
Reference in New Issue
Block a user