"Clear temporary data" in setup module misses JS confirm
authorFrancois Suter <francois.suter@typo3.org>
Fri, 26 Mar 2010 15:06:41 +0000 (15:06 +0000)
committerFrancois Suter <francois.suter@typo3.org>
Fri, 26 Mar 2010 15:06:41 +0000 (15:06 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7181 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/setup/mod/index.php
typo3/sysext/setup/mod/locallang.xml

index 1086cd1..c3dbe32 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@
        * Fixed bug #13678: Bug: htmlmail send mail twice if cc recipient is set (thanks to Robert Heel)
        * Follow-up to #13678: Removed cleanup of recipient_copy which is now unused
        * Fixed bug #13920: Removed unused property $additionalStyleSheets in template.php (thanks to Steffen Gebert)
+       * Fixed bug #12202: "Clear temporary data" in setup module misses JS confirm (thanks to Søren Malling)
 
 2010-03-25  Ernesto Baschny  <ernst@cron-it.de>
 
index fccbb8c..7003827 100755 (executable)
@@ -367,7 +367,7 @@ class SC_mod_user_setup_index {
                        <input type="hidden" name="simUser" value="'.$this->simUser.'" />
                        <input type="submit" name="submit" value="'.$LANG->getLL('save').'" />
                        <input type="submit" name="data[setValuesToDefault]" value="'.$LANG->getLL('resetConfiguration').'" onclick="return confirm(\''.$LANG->getLL('setToStandardQuestion').'\');" />
-                       <input type="submit" name="data[clearSessionVars]" value="'.$LANG->getLL('clearSessionVars').'" />'
+                       <input type="submit" name="data[clearSessionVars]" value="' . $LANG->getLL('clearSessionVars') . '"  onclick="return confirm(\'' . $LANG->getLL('clearSessionVarsQuestion') . '\');" />'
                );
 
 
index 1ffa646..a108436 100755 (executable)
@@ -89,6 +89,7 @@
                        <label index="resetConfiguration">Reset Configuration and Clear Temporary Data</label>
                        <label index="setToStandardQuestion">Are you sure you want to reset all values to default?</label>
                        <label index="clearSessionVars">Clear Temporary Data</label>
+                       <label index="clearSessionVarsQuestion">Are you sure you want to clear the temporary data?</label>
                        <label index="functions">Advanced functions</label>
                        <label index="copyLevels">&lt;b&gt;Recursive Copy:&lt;/b&gt; Enter the number of page&lt;br /&gt;sublevels to include, when a page is copied</label>
                        <label index="recursiveDelete">&lt;b&gt;Recursive Delete(!):&lt;/b&gt; Allow ALL subpages&lt;br /&gt;to be deleted when deleting a page</label>