Default filtration added to the select tab

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • d1m17ar
    Junior Member
    • Sep 2025
    • 3

    #1

    Default filtration added to the select tab

    Greeting everyone! I am not sure if this is the right place to ask this question, but it seemed like the most fitting.

    We have customized the Opportunity page which now includes couple of linked fields. They both point to a contact and we've added some select handlers to them so only contacts related to already defined account should be displayed. For some reason we get another filter applied as well

    Click image for larger version

Name:	image.png
Views:	0
Size:	47.6 KB
ID:	121824
    I need this additional filter removed but no matter how I modify the /custom/src/handlers/select-related/contact-by-account.js, which should be the one responsible for this Select, nothing happens. Well I managed to break the whole functionality several times but other than that I had no luck with removing or even altering this filter.
    Any advice would be appreciated.


  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9440

    #2
    I think this filter is added for many-to-one relationships. So that a user won't unlink existing link by linking the record that is already linked. Ther's no official way to suppress this filter.

    You can extend the link field view to suppress this logic. https://github.com/espocrm/espocrm/b.../link.js#L1222

    But it won't be fully upgrade safe.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • d1m17ar
      Junior Member
      • Sep 2025
      • 3

      #3
      Thank you for the quick response.

      Comment

      Working...