- 🇨🇷Costa Rica maxmendez
Thanks @andyg5000 your suggestion fixed my problem with a custom action button.
In some cases $form['actions'] is not set and some notices are triggered.
This patch Just fix it, checking if the key exists in $form- last update
about 2 years ago 29 pass - last update
about 2 years ago 29 pass - First commit to issue fork.
- last update
about 2 years ago 29 pass - @shivam_tiwari opened merge request.
- Status changed to Needs review
about 2 years ago 2:03pm 16 May 2023 - First commit to issue fork.
- Status changed to Fixed
about 2 years ago 2:36pm 22 May 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Needs review
over 1 year ago 7:47pm 9 December 2023 - Status changed to Needs work
over 1 year ago 7:50pm 9 December 2023 - 🇩🇪Germany geek-merlin Freiburg, Germany
Review: #8 states why the current code needs work.
- 🇫🇮Finland tvalimaa
Hi I had also this issue that my custom draft-button didn't save entity references which is added on ief.
Thanks to #15 advice that code example looks working correctly. Also I got my code working on #17 patch but I will keep #15 code changes and not patch module.
$form['actions']['draft'] = [ '#type' => 'submit', '#class' => 'form-submit', '#name' => 'btn-draft', '#value' => t('Save as draft'), '#attributes' => ['formnovalidate' => 'formnovalidate'], '#submit' => [ ['Drupal\inline_entity_form\ElementSubmit', 'trigger'], '::submitForm', '::save', '_ebp_node_form_save_draft_save' ], '#ief_submit_trigger' => TRUE, '#ief_submit_trigger_all' => TRUE, ];