diff --git a/ChangeLog b/ChangeLog index 449ece2d0..51351d05b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-02-20 Franz Holzinger + * change hook tx_double6 into JambageCom\Div2007\Hooks\Evaluation\Double6 + * new feature: error.configuration to show misconfiguration errors in the Front End + * change composer.json domain from typo3-ter to jambagecom because packageist is supported now. + 2018-12-21 Franz Holzinger * add status provider for TYPO3 reports module * compatibility: Check in the front end and back end if $GLOBALS['TYPO3_CONF_VARS']['FE']['enableRecordRegistration'] has been set. diff --git a/Configuration/TCA/tt_products.php b/Configuration/TCA/tt_products.php index c44200907..742eea29c 100755 --- a/Configuration/TCA/tt_products.php +++ b/Configuration/TCA/tt_products.php @@ -434,7 +434,7 @@ 'type' => 'input', 'size' => '10', 'max' => '20', - 'eval' => 'trim,tx_double6', + 'eval' => 'trim,JambageCom\\Div2007\\Hooks\\Evaluation\\Double6', ) ), 'usebydate' => array ( @@ -888,5 +888,6 @@ + return $result; diff --git a/Configuration/TCA/tt_products_articles.php b/Configuration/TCA/tt_products_articles.php index bb8209314..fb5baae2a 100755 --- a/Configuration/TCA/tt_products_articles.php +++ b/Configuration/TCA/tt_products_articles.php @@ -232,7 +232,7 @@ 'type' => 'input', 'size' => '10', 'max' => '20', - 'eval' => 'trim,tx_double6', + 'eval' => 'trim,JambageCom\\Div2007\\Hooks\\Evaluation\\Double6', ) ), 'color' => array ( diff --git a/composer.json b/composer.json index 0e0c35b19..938b334bc 100644 --- a/composer.json +++ b/composer.json @@ -10,14 +10,14 @@ "cart" ], "support": { - "issues": "http://jambage.com/kontakt/forum.html" + "issues": "https://jambage.com/kontakt/forum.html" }, "homepage": "https://jambage.com", "authors": [ { "name": "Franz Holzinger", "role": "Developer", - "homepage": "http://ttproducts.de" + "homepage": "https://ttproducts.de" } ], "license": [ @@ -25,13 +25,13 @@ ], "require": { "typo3/cms-core": ">=6.2.0,<8.99.99", - "typo3-ter/div2007": ">=1.10.3", - "typo3-ter/migration-core": ">=0.0.1", - "typo3-ter/table": ">=0.7.0", - "typo3-ter/tsparser": ">=0.2.5" + "jambagecom/div2007": ">=1.10.17", + "jambagecom/migration-core": ">=0.0.1", + "jambagecom/table": ">=0.7.0", + "jambagecom/tsparser": ">=0.2.5" }, "suggest": { - "typo3-ter/addons-em": ">=0.2.1" + "jambagecom/addons-em": ">=0.2.1" }, "autoload": { "psr-4": { @@ -58,7 +58,7 @@ }, "replace": { "tt_products": "self.version", - "typo3-ter/tt-products": "self.version" + "jambagecom/tt-products": "self.version" }, "extra": { "typo3/cms": { diff --git a/control/class.tx_ttproducts_main.php b/control/class.tx_ttproducts_main.php index 44b0ecfe7..7ad5966b7 100755 --- a/control/class.tx_ttproducts_main.php +++ b/control/class.tx_ttproducts_main.php @@ -846,11 +846,14 @@ public function &run ($pibaseClass, &$error_code, $content = '', $bRunAjax = fal $rc = ''; } - if (!$this->conf['defaultSetup']) { + $showConfigurationError = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXT]['error.']['configuration']; + + if ($showConfigurationError && !$this->conf['defaultSetup']) { $rc .= 'Error: The default tt_products setup is missing.'; } if ( + $showConfigurationError && ( ( version_compare(TYPO3_version, '7.6.32', '>=') && diff --git a/ext_conf_template.txt b/ext_conf_template.txt index a3422a3cb..b84c2af2f 100755 --- a/ext_conf_template.txt +++ b/ext_conf_template.txt @@ -44,4 +44,6 @@ exclude.sys_products_orders = client_ip,date_of_birth,telephone,fax,ac_uid,cc_ui cache.backend = 0 # cat=cache/enable; type=string; label=Cache Options for Server: Enter the cache options for the server. cache.options.servers = + # cat=error/enable; type=boolean; label=Show Configuration Error Messages: Misconfiguration Error messages are shown in the Front End. +error.configuration = 1 diff --git a/ext_emconf.php b/ext_emconf.php index 5092de501..ce93f24e3 100755 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -15,10 +15,10 @@ 'author' => 'Franz Holzinger', 'author_email' => 'franz@ttproducts.de', 'author_company' => 'jambage.com', - 'version' => '2.9.4', + 'version' => '2.9.5', 'constraints' => array( 'depends' => array( - 'div2007' => '1.10.12-0.0.0', + 'div2007' => '1.10.17-0.0.0', 'migration_core' => '0.0.0-0.99.99', 'php' => '5.6.0-7.2.99', 'table' => '0.7.0-0.0.0', diff --git a/ext_localconf.php b/ext_localconf.php index 43c96596c..5ebb5efab 100755 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -239,7 +239,7 @@ class_exists($emClass) && $GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/mydashboard/class.tx_mydashboard_widgetmgm.php']['addWidget']['tt_products_latest'] = 'EXT:' . TT_PRODUCTS_EXT . '/widgets/class.tx_ttproducts_latest.php:tx_ttproducts_latest'; -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals']['tx_double6'] = 'EXT:' . DIV2007_EXTkey . '/hooks/class.tx_div2007_hooks_eval.php'; +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals']['JambageCom\\Div2007\\Hooks\\Evaluation\\Double6'] = ''; if (isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']) && is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch'])) {