Fixed bug #13254: Flash Messages in wizard create multiple pages (Thanks to Georg...
authorAndreas Otto <andreas.otto@dkd.de>
Sun, 17 Jan 2010 13:15:14 +0000 (13:15 +0000)
committerAndreas Otto <andreas.otto@dkd.de>
Sun, 17 Jan 2010 13:15:14 +0000 (13:15 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6792 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/wizard_crpages/class.tx_wizardcrpages_webfunc_2.php
typo3/sysext/wizard_crpages/locallang.xml

index 5fb6170..b6b6e0a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-17  Andreas Otto  <andreas@otto-hanika.de>
+
+        * Fixed bug #13254: Flash Messages in wizard "create multiple pages" (Thanks to Georg Ringer)
+
 2010-01-16  Xavier Perseguers  <typo3@perseguers.ch>
 
        * Fixed bug #12681: Select/Deselect all should be visible as link (Thanks to Georg Ringer)
index c919d16..fc4fa2b 100755 (executable)
@@ -129,9 +129,22 @@ class tx_wizardcrpages_webfunc_2 extends t3lib_extobjbase {
                                        $tce->start($data,array());
                                        $tce->process_datamap();
                                        t3lib_BEfunc::getSetUpdateSignal('updatePageTree');
+                                       
+                                       $flashMessage = t3lib_div::makeInstance(
+                                               't3lib_FlashMessage',
+                                               '',
+                                               $GLOBALS['LANG']->getLL('wiz_newPages_create')
+                                       );                                      
                                } else {
-                                       $theCode.=$GLOBALS['TBE_TEMPLATE']->rfw($LANG->getLL('wiz_newPages_noCreate').'<br /><br />');
+                                       $flashMessage = t3lib_div::makeInstance(
+                                               't3lib_FlashMessage',
+                                               '',
+                                               $GLOBALS['LANG']->getLL('wiz_newPages_noCreate'),
+                                               t3lib_FlashMessage::ERROR
+                                       );
                                }
+                               
+                               $theCode.= $flashMessage->render();
 
                                        // Display result:
                                $menuItems = $sys_pages->getMenu($this->pObj->id,'*','sorting','',0);
index 12e2752..e9c4f44 100755 (executable)
@@ -18,6 +18,7 @@
                        <label index="wiz_newPages_lCreate_msg1">You're about to create many new pages. Are you sure you want to continue?</label>
                        <label index="wiz_newPages_lReset">Clear fields</label>
                        <label index="wiz_newPages_noCreate">No pages were created!</label>
+                       <label index="wiz_newPages_create">The pages were created!</label>
                </languageKey>
        </data>
-</T3locallang>
\ No newline at end of file
+</T3locallang>