Skip to content

Commit

Permalink
#24292 include in 23.01.9
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Nov 17, 2023
1 parent a82a9a4 commit 35bd994
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Expand Up @@ -181,7 +181,9 @@ describe('DotPaletteStore', () => {
it('should load inly widgets to store if allowedContent is empty', (done) => {
const sortedDataMock = contentTypeDataMock.sort((a, b) => a.name.localeCompare(b.name));
spyOn(dotContentTypeService, 'filterContentTypes').and.returnValues(of([]));
spyOn(dotContentTypeService, 'getContentTypes').and.returnValues(of(sortedDataMock as DotCMSContentType[]));
spyOn(dotContentTypeService, 'getContentTypes').and.returnValues(
of(sortedDataMock as DotCMSContentType[])
);
dotPaletteStore.loadContentTypes([]);
dotPaletteStore.vm$.subscribe((data) => {
expect(data.contentTypes).toEqual(sortedDataMock as DotCMSContentType[]);
Expand Down Expand Up @@ -231,7 +233,7 @@ describe('DotPaletteStore', () => {
lang: '1',
filter: '',
offset: '0',
query: '+contentType: product'
query: '+contentType: product +deleted: false'
});
expect(data.contentlets).toEqual([
contentletProductDataMock
Expand Down Expand Up @@ -301,4 +303,4 @@ describe('DotPaletteStore', () => {
expect(dotContentTypeService.filterContentTypes).not.toHaveBeenCalled();
expect(dotContentTypeService.getContentTypes).not.toHaveBeenCalled();
}));
});
});
Expand Up @@ -188,7 +188,7 @@ export class DotPaletteStore extends ComponentStore<DotPaletteState> {
lang: languageId || '1',
filter: filter || '',
offset: (event && event.first.toString()) || '0',
query: `+contentType: ${this.contentTypeVarName}`
query: `+contentType: ${this.contentTypeVarName} +deleted: false`
})
.pipe(take(1))
.subscribe((response: ESContent) => {
Expand Down
1 change: 1 addition & 0 deletions hotfix_tracking.md
Expand Up @@ -163,3 +163,4 @@ This maintenance release includes the following code fixes:
133. https://github.com/dotCMS/core/issues/24227 : [SASS] : Minify CSS output by default #24227
134. https://github.com/dotCMS/core/issues/24266 : Content Type publish and expire date are set to empty #24266
135. https://github.com/dotCMS/core/issues/24291 : Ensure that sessions can be serialized and replicated across servers #24291
136. https://github.com/dotCMS/core/issues/24292 : Content Palette Should Not Show Archived Content #24292

0 comments on commit 35bd994

Please sign in to comment.