2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
if(db_result(db_query("SELECT aid FROM {trigger_assignments} WHERE hook = '%s' AND op = '%s' AND aid = '%s'",$form_values['hook'],$form_values['operation'],$aid))){
form_set_error($form_values['operation'],t('The action you choose is already assigned to that trigger.'));