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.)
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | resetdefaults.patch | 725 bytes | markdionne |
Comments
Comment #1
kaerast commentedThis 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.
Comment #2
RobRoy commentedThis is a feature request so moving to 6.x-dev. Great idea guys, this is much needed. Any takers?
Comment #3
dnewkerk commentedI'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.
Comment #4
markdionne commentedThe 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.
Comment #5
dave reidComment #6
redpuma commented+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.
Comment #7
sunSince the entire "Reset to defaults" button and functionality has been removed (for whatever reason?!) from D7, this issue won't fix.
Comment #8
hass commentedI'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?
Comment #9
hass commented#518750: Rethink the system settings form