Skip to content

Commit

Permalink
Merge pull request #3 from pixelant/fixItemCategoryIsNull
Browse files Browse the repository at this point in the history
[FIX] Item Category is null, with makeCategorizable
  • Loading branch information
Tim Ta authored Jan 16, 2018
2 parents 2e823b9 + 39e104f commit 95bb2f1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
11 changes: 11 additions & 0 deletions Configuration/TCA/Overrides/tx_pxaitemlist_domain_model_item.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
defined('TYPO3_MODE') || die;

call_user_func(
function () {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable(
'pxa_item_list',
'tx_pxaitemlist_domain_model_item'
);
}
);
3 changes: 2 additions & 1 deletion Configuration/TCA/tx_pxaitemlist_domain_model_item.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
'1' => array(
'showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, name,'.
' year, customer, product_choice, architect, consultant, installer, description, image,'.
' pdf, date, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'
' pdf, date, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime,'.
' --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories'
),
),
'palettes' => array(
Expand Down
Binary file removed Resources/Private/Language/.DS_Store
Binary file not shown.
Binary file removed Resources/Private/Partials/.DS_Store
Binary file not shown.
Binary file removed Resources/Private/Templates/.DS_Store
Binary file not shown.
Binary file removed Resources/Public/Icons/.DS_Store
Binary file not shown.
5 changes: 0 additions & 5 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,3 @@
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages(
'tx_pxaitemlist_domain_model_item'
);

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable(
$_EXTKEY,
'tx_pxaitemlist_domain_model_item'
);
8 changes: 1 addition & 7 deletions ext_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CREATE TABLE tx_pxaitemlist_domain_model_item (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,

categories int(11) unsigned DEFAULT '0' NOT NULL,
name varchar(255) DEFAULT '' NOT NULL,
year int(11) unsigned DEFAULT '0' NOT NULL,
customer varchar(255) DEFAULT '' NOT NULL,
Expand Down Expand Up @@ -46,10 +47,3 @@ CREATE TABLE tx_pxaitemlist_domain_model_item (
KEY language (l10n_parent,sys_language_uid)

);

#
# Table structure for table 'tx_pxaitemlist_domain_model_item'
#
CREATE TABLE tx_pxaitemlist_domain_model_item (
categories int(11) unsigned DEFAULT '0' NOT NULL,
);

0 comments on commit 95bb2f1

Please sign in to comment.