Skip to content

Commit

Permalink
Fix the Commit Restrictions settings by testing the correct variable.
Browse files Browse the repository at this point in the history
($form['#id'] instead of $form_id)
  • Loading branch information
jpetso committed Jun 21, 2009
1 parent 99edca0 commit f400802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commit_restrictions/commit_restrictions.module
Expand Up @@ -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();
Expand Down

0 comments on commit f400802

Please sign in to comment.