Fixed bug #13590: felogin adds field felogin_forgotHash to tca but does not add field...
authorBenni Mack <benni.mack@typo3.org>
Sat, 27 Mar 2010 08:27:49 +0000 (08:27 +0000)
committerBenni Mack <benni.mack@typo3.org>
Sat, 27 Mar 2010 08:27:49 +0000 (08:27 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7200 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/felogin/ext_tables.php

index c1593c5..71b46c8 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-27  Benjamin Mack  <benni@typo3.org>
+
+       * Fixed bug #13590: felogin adds field felogin_forgotHash to tca but does not add field to database (Thanks to Fabrizio Branca)
+
 2010-03-26  Oliver Hader  <oliver@typo3.org>
 
        * Added feature #13697: Add possibility to retrieve extension version (thanks to Tolleiv Nietsch & Oliver Klee)
index d3dcb0e..10962b4 100644 (file)
@@ -16,7 +16,27 @@ $TCA['tt_content']['types']['login']['showitem']='CType;;4;;1-1-1, hidden, heade
                                                        --div--;LLL:EXT:cms/locallang_ttc.xml:CType.I.14, pi_flexform;;;;1-1-1,
                                                        --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime';
 
-       // Adds the redirect-field to the fe_group- and fe_users-table
+       // Adds the redirect field to the fe_groups table
+$tempColumns = array(
+       'felogin_redirectPid' => array(
+               'exclude' => 1,
+               'label'  => 'LLL:EXT:felogin/locallang_db.xml:felogin_redirectPid',
+               'config' => array(
+                       'type' => 'group',
+                       'internal_type' => 'db',
+                       'allowed' => 'pages',
+                       'size' => 1,
+                       'minitems' => 0,
+                       'maxitems' => 1,
+               )
+       ),
+);
+
+t3lib_div::loadTCA('fe_groups');
+t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
+t3lib_extMgm::addToAllTCAtypes('fe_groups', 'felogin_redirectPid;;;;1-1-1');
+
+       // Adds the redirect field and the forgotHash field to the fe_users-table
 $tempColumns = array (
        "felogin_redirectPid" => array (
                "exclude" => 1,
@@ -39,10 +59,6 @@ $tempColumns = array (
        ),
 );
 
-t3lib_div::loadTCA("fe_groups");
-t3lib_extMgm::addTCAcolumns("fe_groups",$tempColumns,1);
-t3lib_extMgm::addToAllTCAtypes("fe_groups","felogin_redirectPid;;;;1-1-1");
-
 t3lib_div::loadTCA("fe_users");
 t3lib_extMgm::addTCAcolumns("fe_users",$tempColumns,1);
 t3lib_extMgm::addToAllTCAtypes("fe_users","felogin_redirectPid;;;;1-1-1");