Browse Source

fixed validation so empty titles cant be submitted

9.x-3.0
Paul Pound 2 weeks ago
parent
commit
f2a011a94a
  1. 2
      src/Form/RoblibIllLoanForm.php

2
src/Form/RoblibIllLoanForm.php

@ -76,6 +76,7 @@ class RoblibIllLoanForm extends FormBase
\Drupal::moduleHandler()->loadInclude('upei_roblib_ill', 'inc', 'includes/db');
upei_roblib_ill_log_request($payload, $err);
}
}
$trigger = $form_state->getTriggeringElement();
if ($trigger['#value'] != 'Lookup DOI' && empty($form_state->get('step'))) {
@ -87,7 +88,6 @@ class RoblibIllLoanForm extends FormBase
}
}
}
}
/**
* @param string $id

Loading…
Cancel
Save