Skip to content

Commit

Permalink
* bugfix: Remove the iban field from TCA. IBAN is only supported sice…
Browse files Browse the repository at this point in the history
… tt_products 2.11.0
  • Loading branch information
franzholz committed Jul 2, 2016
1 parent 89f0689 commit b72d148
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 37 deletions.
17 changes: 1 addition & 16 deletions Configuration/TCA/sys_products_accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@

$accountField = 'ac_number';

if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXT]['sepa']) {
$accountField = 'iban';
}

// ******************************************************************
// These are the bank account data used for orders
// ******************************************************************
Expand All @@ -25,16 +21,6 @@
'searchFields' => 'owner_name,' . $accountField,
),
'columns' => array (
'iban' => array (
'exclude' => 1,
'label' => 'LLL:EXT:' . TT_PRODUCTS_EXT . '/locallang_db.xml:sys_products_accounts.iban',
'config' => array (
'type' => 'input',
'size' => '24',
'max' => '24',
'eval' => 'required,trim',
)
),
'ac_number' => array (
'exclude' => 0,
'label' => 'LLL:EXT:' . TT_PRODUCTS_EXT . '/locallang_db.xml:sys_products_accounts.ac_number',
Expand Down Expand Up @@ -64,7 +50,7 @@
),
),
'types' => array (
'1' => array('showitem' => 'hidden;;;;1-1-1, iban, ac_number, owner_name, bic')
'1' => array('showitem' => 'hidden;;;;1-1-1, ac_number, owner_name, bic')
),
'palettes' => array (
'1' => array('showitem' => '')
Expand All @@ -73,7 +59,6 @@


if ($accountField != 'iban') {
unset($result['columns']['iban']['config']['eval']);
$result['columns'][$accountField]['config']['eval'] = 'required,trim';
}

Expand Down
5 changes: 0 additions & 5 deletions Configuration/TCA/tt_products.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
}

$whereCategory = '';
$whereTaxCategory = '';

if (
isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXT]['where.']) &&
Expand All @@ -20,10 +19,6 @@
}


if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded(STATIC_INFO_TABLES_TAXES_EXT)) {
$whereTaxCategory = \TYPO3\CMS\Backend\Utility\BackendUtility::BEenableFields('static_tax_categories');
}

$result = array(
'ctrl' => array(
'title' =>'LLL:EXT:' . TT_PRODUCTS_EXT . '/locallang_db.xml:tt_products',
Expand Down
1 change: 0 additions & 1 deletion Configuration/TCA/tt_products_cat.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,5 @@
}
}


return $result;

2 changes: 0 additions & 2 deletions model/class.tx_ttproducts_language.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
*/


// require_once(PATH_BE_div2007.'class.tx_div2007_alpha_language_base.php');


class tx_ttproducts_language extends tx_div2007_alpha_language_base {
public function init1 ($pObj, $cObj, &$conf, $scriptRelPath) {
Expand Down
2 changes: 1 addition & 1 deletion template/products_css_variants_de.html
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ <h3>BASKET_REQUIRED_INFO_MISSING</h3>

<div class="BASKET_REQUIRED_INFO_MISSING">
Fehler bei der Eingabe<br />
<b>Sie haben nicht alle erforderlichen Felder mit Ihren Adressinformationen ausgefï¿œllt. Bitte gehen Sie zurï¿œck und aktualisieren Ihre Eingaben.</b>
<b>Sie haben nicht alle erforderlichen Felder mit Ihren Adressinformationen ausgefüllt. Bitte gehen Sie zurück und aktualisieren Ihre Eingaben.</b>
<form method="post" action="###FORM_URL###">
<input type="submit" id="button2" name="products_info" value="Adressdaten eingeben" onclick="document.forms[0].action='###FORM_URL_INFO###';">
</form>
Expand Down
2 changes: 0 additions & 2 deletions view/class.tx_ttproducts_relatedlist_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
*
*/

// require_once (PATH_BE_ttproducts.'model/class.tx_ttproducts_pid_list.php');


class tx_ttproducts_relatedlist_view {
public $conf;
Expand Down
10 changes: 0 additions & 10 deletions view/class.tx_ttproducts_table_base_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
*
*/

// require_once (PATH_BE_ttproducts.'view/field/class.tx_ttproducts_field_base_view.php');


abstract class tx_ttproducts_table_base_view {
private $bHasBeenInitialised = FALSE;
Expand Down Expand Up @@ -215,11 +213,6 @@ public function getItemSubpartArrays (
continue;
}
}
/* foreach ($row as $field => $v1) {
if (strtoupper($field) == $tagPartArray[1]) {
break;
}
}*/
$fieldArray = array($fieldname => array($comparator, intval($comparand)));
$bCondition = FALSE;

Expand Down Expand Up @@ -466,9 +459,6 @@ public function getRowMarkerArray (
$rowMarkerArray['###' . $theTag . '###'] = '';
}
}
if (!isset($rowMarkerArray['###' . $theTag . '###']) && strpos($theTag,$markerKey) === 0) {
// Todo
}
}
}
}
Expand Down

0 comments on commit b72d148

Please sign in to comment.