diff --git a/layouts/v7/modules/Settings/Workflows/AdvanceFilterCondition.tpl b/layouts/v7/modules/Settings/Workflows/AdvanceFilterCondition.tpl index eaaf653d63b3187100dd6e36d99d74efc6f02c60..a018f960af5a1201d91dbcfae4ab70d6c9f9afae 100644 --- a/layouts/v7/modules/Settings/Workflows/AdvanceFilterCondition.tpl +++ b/layouts/v7/modules/Settings/Workflows/AdvanceFilterCondition.tpl @@ -70,9 +70,11 @@ <option value="none">{vtranslate('LBL_NONE',$MODULE)}</option> {assign var=ADVANCE_FILTER_OPTIONS value=$ADVANCED_FILTER_OPTIONS_BY_TYPE[$FIELD_TYPE]} {foreach item=ADVANCE_FILTER_OPTION from=$ADVANCE_FILTER_OPTIONS} - <option value="{$ADVANCE_FILTER_OPTION}" {if $ADVANCE_FILTER_OPTION eq $CONDITION_INFO['comparator']} selected {/if}> - {vtranslate($ADVANCED_FILTER_OPTIONS[$ADVANCE_FILTER_OPTION])} - </option> + <option value="{$ADVANCE_FILTER_OPTION}" + {if $ADVANCE_FILTER_OPTION === $CONDITION_INFO['comparator']} + selected + {/if} + >{vtranslate($ADVANCED_FILTER_OPTIONS[$ADVANCE_FILTER_OPTION])}</option> {/foreach} </select> </span> diff --git a/layouts/v7/modules/Settings/Workflows/resources/AdvanceFilter.js b/layouts/v7/modules/Settings/Workflows/resources/AdvanceFilter.js index ee2f992877ac7be95990759f431778cc3ffdee87..d1559a86a1dbf47ccce49d3606ac791d6c4cd16f 100644 --- a/layouts/v7/modules/Settings/Workflows/resources/AdvanceFilter.js +++ b/layouts/v7/modules/Settings/Workflows/resources/AdvanceFilter.js @@ -485,7 +485,7 @@ Vtiger_Owner_Field_Js('Workflows_Ownergroup_Field_Js',{},{ } }); -Vtiger_Picklist_Field_Js('Workflows_Picklist_Field_Js',{},{ +AdvanceFilter_Picklist_Field_Js('Workflows_Picklist_Field_Js',{},{ getUi : function(){ var selectedOption = app.htmlDecode(this.getValue());