Commit bdf23cd1 authored by Dries's avatar Dries

- Patch #458608 by deekayen: permissions colspan references wrong array element.

parent 7e36364c
...@@ -668,7 +668,7 @@ function theme_user_admin_perm($form) { ...@@ -668,7 +668,7 @@ function theme_user_admin_perm($form) {
$row = array(); $row = array();
// Module name // Module name
if (is_numeric($key)) { if (is_numeric($key)) {
$row[] = array('data' => drupal_render($form['permission'][$key]), 'class' => 'module', 'id' => 'module-' . $form['permission'][$key]['#id'], 'colspan' => count($form['role_names']) + 1); $row[] = array('data' => drupal_render($form['permission'][$key]), 'class' => 'module', 'id' => 'module-' . $form['permission'][$key]['#id'], 'colspan' => count($form['role_names']['#value']) + 1);
} }
else { else {
// Permission row. // Permission row.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment