Skip to content

Commit

Permalink
fix: Is Avanced Query button reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Oct 17, 2024
1 parent 9b1a1ef commit 00b596d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/ADempiere/dictionaryUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function generateField({
// overwrite `Button` to `List` or `Table` display type.
if (fieldToGenerate.display_type === BUTTON.id) {
if ((moreAttributes.isAdvancedQuery || fieldToGenerate.is_query_criteria) &&
fieldToGenerate.reference && fieldToGenerate.reference.reference_value_id > 0) {
fieldToGenerate.reference && fieldToGenerate.reference.reference_id > 0 && fieldToGenerate.reference.reference_value_id > 0) {
// overwrite if is with reference
componentReference = evalutateTypeField(fieldToGenerate.reference.reference_id)
fieldToGenerate.display_type = fieldToGenerate.reference.reference_id
Expand Down

0 comments on commit 00b596d

Please sign in to comment.