Permalink
Browse files

Fix the Commit Restrictions settings by testing the correct variable.

($form['#id'] instead of $form_id)
  • Loading branch information...
1 parent 99edca0 commit f40080290a9790120d00f74f6c227d9266f451cd jpetso committed Jun 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 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();

0 comments on commit f400802

Please sign in to comment.