Enum Options Ignored in API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kurt
    Member
    • Jan 2018
    • 37

    Enum Options Ignored in API

    I added a Status field of type Enum to the Account entity with two options: "active" and "paused". I am able to create an account through the API that has a value outside of those options and it gets saved on the entity. For example, I passed "test" and that value shows up in the UI even though it's not in the drop-down options.

    As with another issue I recently reported (http://forum.espocrm.com/forum/featu...lid-attributes) this is forcing me to recreate the entity model in my code that accesses the API just to workaround the lack of enforcement of the model in the API itself.

    I am using EspoCRM 5.0.1.

    Thanks for your help.

  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    I think in future we will implement a check. It's not a critical issue.
    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

    Working...