Problem with form caching and #after_build

Created on 28 January 2015, almost 10 years ago
Updated 8 July 2024, 5 months ago

There seems to be some conflict with the way that entityconnect_cache_set() is used and the use of #after_build.

If I have an #after_build callback that adds a custom submit handler to the entity connect add button it doesn't work. My submit function never gets called.

If I move that code directly into the form alter function it works OR (and the issue lies somewhere in here) if I comment out the line

<?php
  entityconnect_cache_set($cache_id, $data);
?>

in the entityconnect_add_edit_button_submit() function then my code in the after build does work and my submit function does get called.

So there is something funny going on in relation to the use of that cache it seems.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia rooby

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

Comments & Activities

  • πŸ‡ΊπŸ‡¦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