In administer-->settings I accidentally hit the "Reset to defaults" button instead of "Save configuration". All my settings were instantly reset with no confirmation dialog. Please add a confirmation dialog here (and probably other places, such as in the aggregator settings page etc.)

CommentFileSizeAuthor
#4 resetdefaults.patch725 bytesmarkdionne

Comments

kaerast’s picture

This is reproducible in 5.1 too.

It should be very rare that these need resetting to default, so either a confirmation or removing this functionality would be wise.

RobRoy’s picture

Version: 4.7.4 » 6.x-dev
Category: bug » feature

This is a feature request so moving to 6.x-dev. Great idea guys, this is much needed. Any takers?

dnewkerk’s picture

I'm not skilled enough "yet" myself to take it on... but I wanted to emphasize how important this is. In my case fortunately I only reset a single module's settings and no worse damage than that - though I could imagine much worse scenarios. I wouldn't consider this a feature request - more of a serious usability bug (and one that it would suck to wait for 6.x for). I can hardly imagine how frustrated I would be if countless hours of work were lost due to a simple mis-click... and unrecoverable as there is of course no undo. I (as everyone should) have backups, but who knows if they will be sufficiently current when this mishap occurs again ;) Confusing the buttons aside, I know that I've more than once accidentally clicked on things on sites while simply scrolling, or mousing over with a sensitive touchpad.

markdionne’s picture

StatusFileSize
new725 bytes

The following is for Drupal 4.7.6 but is probably valid for other versions:

To remove this dangerous "Reset to Defaults" button, edit modules/system.module and remove or "comment out" the following line in the function system_settings_form:
$form['buttons']['reset'] = array('#type' => 'submit', '#value' => t('Reset to defaults') );

I'm attaching a patch file for the same thing, for Drupal 4.7.6.

dave reid’s picture

Version: 6.x-dev » 7.x-dev
Component: admin.module » system.module
redpuma’s picture

Version: 7.x-dev » 6.x-dev

+1 for a confirmation

I went to pathauto issue queue to request this but "Greggles" said its a core feature. This needs to be fixed Thanks to having a recent sql dump no data was lost but there is the inconvienience of hitting the wrong button by accident.

sun’s picture

Status: Active » Closed (won't fix)

Since the entire "Reset to defaults" button and functionality has been removed (for whatever reason?!) from D7, this issue won't fix.

hass’s picture

I'm currently researching why "Reset to defaults" has been removed from D7 and how to get this button back... can someone share a case id, please?

hass’s picture