Skip to content

Commit

Permalink
chore: include hotfix-19263 (#26153)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsolistorres committed Sep 18, 2023
1 parent 4d8b683 commit 19e8cb3
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ dojo.declare("dotcms.dijit.form.ContentSelector", [dijit._Widget, dijit._Templat
structureInode: '',
structureVelVar: '',
setDotFieldTypeStr: '',
currentSortBy: "",
currentSortBy: "score,modDate desc",
DOT_FIELD_TYPE: 'dotFieldType',
hasHostFolderField: false,
counter_radio: 0,
Expand Down Expand Up @@ -155,7 +155,7 @@ dojo.declare("dotcms.dijit.form.ContentSelector", [dijit._Widget, dijit._Templat
},

_structureChanged: function () {
this.currentSortBy = "";
this.currentSortBy = "score,modDate desc";
this.setDotFieldTypeStr = "";
LanguageAjax.getLanguagesWithAllOption(dojo.hitch(this, this._fillLanguages));
StructureAjax.getSearchableStructureFields (this.structureInode,dojo.hitch(this, this._fillFields));
Expand Down Expand Up @@ -545,11 +545,13 @@ dojo.declare("dotcms.dijit.form.ContentSelector", [dijit._Widget, dijit._Templat
// else
// fieldsValues[fieldsValues.length] = this.languageId;

if(dijit.byId("langcombo+"+this.dialogCounter).get('displayedValue') != "")
fieldsValues[fieldsValues.length] = dijit.byId("langcombo+"+this.dialogCounter).get('value');
else
fieldsValues[fieldsValues.length] = "";

var langDropDownById = dijit.byId("langcombo+"+this.dialogCounter);
if (langDropDownById && langDropDownById.get('displayedValue') != "") {
fieldsValues[fieldsValues.length] = langDropDownById.get('value');
} else {
fieldsValues[fieldsValues.length] = "";
}

var allField = this.generalSearch.value;

if (allField != undefined && allField.length>0 ) {
Expand Down

0 comments on commit 19e8cb3

Please sign in to comment.