Steps to reproduce
- Having a search with a content attribute which is not a reference table to search on OR on a content attribute which is a reference table but having the view "criteria" without the attribute "archived" inside.
- One of the concerned content should be archived.
- The dropdown list and the search through the magnifying glass are returning the archived values, it should not.
Also, currently, there is no way to force search on archived content in select-content widget, it seems it is not configurable on the widget. I think it was before, when it was managed on browser side.
Analyze
In the class org.ametys.cms.search.cocoon.SelectContentSearchAction, the value to search on "archived" is manually added. But no models defined the "archived" attribute in their criteria, so the value is ignored.
But it works for most reference table because, the search model is built on the fly based on "criteria" view if it exists, it not, it is based on "main" view which included, in most cases, the "archived" attribute.