Removed the buggy filter expand columns

This commit is contained in:
Hein 2025-12-10 12:15:18 +02:00
parent 490ae37c6d
commit efb9e5d9d5

View File

@ -2266,14 +2266,14 @@ func filterExtendedOptions(validator *common.ColumnValidator, options ExtendedRe
filtered.ComputedQL = options.ComputedQL filtered.ComputedQL = options.ComputedQL
// Filter Expand columns // Filter Expand columns
filteredExpands := make([]ExpandOption, 0, len(options.Expand)) // filteredExpands := make([]ExpandOption, 0, len(options.Expand))
for _, expand := range options.Expand { // for _, expand := range options.Expand {
filteredExpand := expand // filteredExpand := expand
// Don't validate relation name, only columns // // Don't validate relation name, only columns
filteredExpand.Columns = validator.FilterValidColumns(expand.Columns) // filteredExpand.Columns = validator.FilterValidColumns(expand.Columns)
filteredExpands = append(filteredExpands, filteredExpand) // filteredExpands = append(filteredExpands, filteredExpand)
} // }
filtered.Expand = filteredExpands // filtered.Expand = filteredExpands
return filtered return filtered
} }