Doesn't work when field is disabled in code, also, entityconnect_add_edit_button_submit should use $form_state['values']

Created on 30 December 2014, almost 10 years ago
Updated 8 July 2024, 5 months ago

Found that when a field is disabled programatically on a form, entityconnect doesn't work. When you click the Edit icon on such a field, the node form just reloads. This stems from the entityconnect_add_edit_button_submit function using $form_state['input'] which are the raw values from $_GET or $_POST. It should use $form_state['values']. That will also simplify things such that the values there will always be numeric id's regardless of the widget used, and avoid the need for the regular expressions in there that pick that id's out of the string value of the field in the case of Autocomplete fields.

Working on a patch, will be forthcoming.

Related issues:

https://www.drupal.org/node/1621140 β†’
https://www.drupal.org/node/1946492 β†’
https://www.drupal.org/node/1844712 β†’

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada m4olivei Grimsby, ON

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024