Series page add related not removing selected titles
Amrayu78
In the previous codebase, whenever you added a title to a series page, it would be removed from the dropdown if you selected it.
Currently it's still showing as selectable in the dropdown even though it's been selected already.
Screenshot attached.
In the top entry, I've selected Kinou Nani wo Tabeta? Season 2.
In the next entry, you can see that the same title is still available to select.
Amrayu78
Max Romanchenko: Another bug whenever you get the chance.
Max Romanchenko
Amrayu78 The old site used a different scheme. The new workflow allows you to connect posts in one go, rather than one by one. If you click on I've selected Kinou Nani wo Tabeta? Season 2 in the second field, you will see a warning that such a post has already been selected.
The thing is, selecting something doesn't mean you're saving it. So the search keeps showing you what you've selected (but not saved). This alert should prevent you from accidentally selecting the same post twice.
However, there are scenarios when it is necessary to add the same post twice (for example, in the case of music). In this case, we need the search to continue to show what has already been selected (since the same group or person may have several relationships within the title). The old site did not allow this, and we had to reinvent the wheel... Now it has become much easier.
Please let us know if there is anything that needs to be improved here.
Amrayu78
Max Romanchenko Understood. Thanks for explaining. Is it possible to show that the title is already selected within the dropdown? If it's too complicated, then don't worry about it. Thanks.
Max Romanchenko
Amrayu78 This is difficult because the search is an Ajax request and it doesn't know which post was selected... I'll think about it. Could you clarify how it should be if the post is already selected?
Should there be a message saying “the title is already selected” in the dropdown menu before the title? If it's not too much trouble, please take a screenshot and I'll think about it. Thank you.
Amrayu78
Max Romanchenko maybe something like this?
Max Romanchenko
Amrayu78 Phew... that was something. I think I managed to remove the duplicate from the list after a long research. That is, not highlighting it in gray, but completely removing it if the post is selected. Please check.
Max Romanchenko
This should work in all cases (cast, crew, music, subtitle projects, etc.).