fix: add link_filters to filter area configuration #34423
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix: apply link_filters property in List View standard filters
closes #34257
Problem
Link fields with
link_filtersproperty defined in DocType configuration were not being respected when creating standard filters in List View. This caused Link fields to show all available options instead of the filtered subset defined in the DocType metadata.Root Cause: The
make_standard_filtersmethod in theFilterAreaclass was not including thelink_filtersproperty when constructing the filter configuration object from the DocField definition.Solution
Added
link_filtersproperty to the config variable construction inFilterArea.make_standard_filters()method. This ensures that Link field filters defined at the DocType level are properly applied when rendering List View filters.Changes Made:
FilterArea.make_standard_filters()to includedf.link_filtersin the filter configlink_filterspropertyTesting
Before:
link_filtersproperty was ignored in List View contextAfter:
link_filterspropertyTest Cases Verified:
link_filtersproperty in a custom DocType