Commit 6c13e6c6 authored by b_sharpe's avatar b_sharpe Committed by Kingdutch

Issue #2969403 by b_sharpe: Submission on nodes causes Multiple menu links

parent 26a28b08
......@@ -68,6 +68,10 @@ class AnalysisFormHandler implements EntityHandlerInterface {
* The ajax response.
public function analysisSubmitAjax(array &$form, FormStateInterface $form_state) {
// Prevent firing accidental submissions from entity builder callbacks.
$form_state->setTemporaryValue('entity_validated', FALSE);
$preview_entity = $form_state->getFormObject()->buildEntity($form, $form_state);
$preview_entity->in_preview = TRUE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment