Announcement

Collapse
No announcement yet.

Checking foreign entity ID

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Checking foreign entity ID

    We have old entities with id like integer (149 for example)

    When we try update related entities we got error: Bad 'foreign' value.

    https://github.com/espocrm/espocrm/b...itory.php#L501

    Two versions:
    1. Incorrect id checking
    2. Incorrect data transfer from front: id transferred as integer not as string
    Click image for larger version

Name:	Screenshot_76.png
Views:	40
Size:	9.7 KB
ID:	83231

  • #2
    You can override validatorClassName for the field in entityDefs.

    Comment


    • #3
      My mistake. I though it's a validation error. I'm not sure what to do with this. We have strings for IDs statically hinted in lot of places, adding support of int would be an effort. I don't consider it as a bug.

      Comment


      • #4
        For which one? For link field?

        Comment

        Working...
        X