Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When autocomplete widget is chosen for a field and form with this widget got rebuild "target_id" is set to empty string which then get passed to entity_load() in entityreference_field_widget_form() and triggering "PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer" with PostgreSQL. This is not a problem for MySQL.
Comment | File | Size | Author |
---|---|---|---|
#5 | entityreference-2765885-4.patch | 466 bytes | RoSk0 |
Comments
Comment #2
RoSk0Provided patch makes sure that "target_id" set for empty widget is not an empty string.
Comment #4
RoSk0Re-roll against latest version.
Comment #5
RoSk0Sorry, missed actual patch.