Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the module uninstall form the module name is not clickable to select for uninstall. Contrary: in the module installation form with clicking on a module name the user can select/unselect the module to install. A small change in modules/system/system.admin.inc could solve this problem
- '<strong>'. drupal_render($form['modules'][$module]['name']) .'</strong>',
+ '<strong><label for="' . $form['uninstall'][$module]['#id'] . '">' . drupal_render($form['modules'][$module]['name']) . '</label></strong>',
Comments
Comment #1
pkiraly CreditAttribution: pkiraly commentedHere I attached the patch file.
Comment #2
Gábor HojtsyApplicable to Drupal 8 and 7? In that case this should escalate from 8 and 7 to 6.
Comment #3
pkiraly CreditAttribution: pkiraly commentedI have checked Drupal 8 and Drupal 7. This is solved in both versions, with exactly the same line of code.
Comment #4
Gábor HojtsyOk, any others to provide feedback?
Comment #6
pkiraly CreditAttribution: pkiraly commentedThe test result said, that "Detect a non-applicable patch.". I am not fully understand why. Anyway: I recreated the patch based upon a newly cloned 6.20 Drupal. (The code change is the same as that of the previous patch.)
Comment #7
pkiraly CreditAttribution: pkiraly commentedComment #9
pkiraly CreditAttribution: pkiraly commentedI found a problem in the patch (unclosed label tag), so here is another version.
Comment #11
pkiraly CreditAttribution: pkiraly commentedI found, that the tests failed because of a drupal.org issue. I filed it as "The automated QA tests of D6 patch failed because it tries to apply for a different Drupal version (D8 instead of D6)" at http://drupal.org/node/1170708
Comment #12
longwaveThe filename should end in -D6.patch, and there are no tests for D6 core anyway.
Having said that this looks good to me, this feature is already present in D7, and improves UX in D6 without breaking anything.
Comment #13
TR CreditAttribution: TR commented#9: the-module-name-on-uninstall-form-is-not-clickable-1107802-6.patch queued for re-testing.
The testbot doesn't work on fixed-point releases like 6.20. Now that @longwave has changed the issue version to 6.x-dev, the testbot should be able to apply the patch.
Comment #15
TR CreditAttribution: TR commented9: the-module-name-on-uninstall-form-is-not-clickable-1107802-6.patch queued for re-testing.
Comment #16
TR CreditAttribution: TR commentedThis has been RTBC for 2+ years (#12). Identical fix was already implemented long ago in D8 and D7.
I re-tested to show that the patch tests green, but the patch was marked "Passed" and the test details showed all green for the test initiated on 3 June 2011 even before the retest.
(It looks like the drupal.org upgrade to D7 may have improperly set the issue back to "Needs work". See the revision history for this issue. This is a known bug in the upgrade process.)
I suggest either:
1) commit the patch
2) mark it as won't fix
Comment #17
TR CreditAttribution: TR commentedRTBC by issue #12 and others.
Comment #18
TR CreditAttribution: TR commented9: the-module-name-on-uninstall-form-is-not-clickable-1107802-6.patch queued for re-testing.