Apply TCA userFuncs to Static Info Tables Manager tables
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 22 Feb 2013 22:34:09 +0000 (22:34 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 22 Feb 2013 22:34:09 +0000 (22:34 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/static_info_tables/trunk@71423 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Classes/Hook/Backend/Form/class.tx_staticinfotables_renderElement.php

index f30c009..7de16df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2013-02-22  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Resolves #45738: Connect static_country_zones to static_countries
+       * Apply TCA userFuncs to Static Info Tables Manager tables
 
 2013-02-21  Stanislas Rolland  <typo3@sjbr.ca>
 
index 791a034..ff35530 100644 (file)
@@ -35,6 +35,7 @@ class tx_staticinfotables_renderElement {
                if (TYPO3_MODE == 'BE') {
                        switch ($PA['table']) {
                                case 'static_territories':
+                               case 'cc_static_territories':
                                        $isoCode = $PA['row']['tr_iso_nr']; 
                                        if (!$isoCode) {
                                                $rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
@@ -49,6 +50,7 @@ class tx_staticinfotables_renderElement {
                                        }
                                        break;
                                case 'static_countries':
+                               case 'cc_static_countries':
                                        $isoCode = $PA['row']['cn_iso_2']; 
                                        if (!$isoCode) {
                                                $rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
@@ -63,6 +65,7 @@ class tx_staticinfotables_renderElement {
                                        }
                                        break;
                                case 'static_currencies':
+                               case 'cc_static_currencies':
                                        $isoCode = $PA['row']['cu_iso_3'];
                                        if (!$isoCode) {
                                                $rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
@@ -88,6 +91,7 @@ class tx_staticinfotables_renderElement {
        public function sortTerritoriesSelector ($PA, $fObj) {
                switch ($PA['table']) {
                        case 'static_territories':
+                       case 'cc_static_territories':
                                // Avoid circular relation
                                $row = $PA['row'];
                                foreach ($PA['items'] as $index => $item) {
@@ -96,6 +100,7 @@ class tx_staticinfotables_renderElement {
                                        }
                                }
                        case 'static_countries':
+                       case 'cc_static_countries':
                                asort($PA['items']);
                                break;
                }
@@ -107,6 +112,7 @@ class tx_staticinfotables_renderElement {
        public function sortCurrenciesSelector ($PA, $fObj) {
                switch ($PA['table']) {
                        case 'static_currencies':
+                       case 'cc_static_currencies':
                                asort($PA['items']);
                                break;
                }