From f40080290a9790120d00f74f6c227d9266f451cd Mon Sep 17 00:00:00 2001 From: jpetso Date: Sun, 21 Jun 2009 15:34:29 +0000 Subject: [PATCH] Fix the Commit Restrictions settings by testing the correct variable. ($form['#id'] instead of $form_id) --- commit_restrictions/commit_restrictions.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit_restrictions/commit_restrictions.module b/commit_restrictions/commit_restrictions.module index 2499a21..744e4f1 100644 --- a/commit_restrictions/commit_restrictions.module +++ b/commit_restrictions/commit_restrictions.module @@ -13,7 +13,7 @@ * to the add/edit repository form of the Version Control API module. */ function commit_restrictions_form_alter(&$form, &$form_state, $form_id) { - if ($form_id == 'versioncontrol-repository-form') { + if ($form['#id'] == 'versioncontrol-repository-form') { $backends = versioncontrol_get_backends(); $backend_capabilities = $backends[$form['#vcs']]['capabilities']; $restrictions = array();