-
Notifications
You must be signed in to change notification settings - Fork 354
Open
Labels
BugError or unexpected behavior of already existing functionalityError or unexpected behavior of already existing functionality
Description
| Q | A |
|---|---|
| Sulu Version | 2.6.12 |
| PHP Version | 8.3.27 |
| DB Version | MySQL 8.4.7 |
| Browser Version | Firefox 140.5.0esr (aarch64) |
Actual Behavior
After selecting a filter on a custom entity list, it initially works as expected. However, after reloading the page or navigating away and returning to the list, the previously selected filter value is no longer shown in the dropdown. This makes it possible to apply the same filter multiple times.
Expected Behavior
The select filter in custom entities should work like with articles - there the values are remembered.
Steps to Reproduce
Add a select to the list of your custom entity.
<property name="approval" visibility="always" searchability="yes" translation="app.review.approval">
<field-name>approval</field-name>
<entity-name>App\Entity\Review</entity-name>
<transformer type="translation">
<params>
<param name="prefix" value="app.review.approval."/>
</params>
</transformer>
<filter type="select">
<params>
<param name="options" type="collection">
<param name="1" value="app.review.approval.1" />
<param name="2" value="app.review.approval.2" />
<param name="3" value="app.review.approval.3" />
</param>
</params>
</filter>
</property>
Use the browser to test.
- The select is empty initially
- I clicked on some checkboxes
- I applied the filter by clicking ok
- I reloaded the page and take a peek at the selected options
- I check some checkboxes
- I see the label now contains the old and the new choices
Metadata
Metadata
Assignees
Labels
BugError or unexpected behavior of already existing functionalityError or unexpected behavior of already existing functionality