Commit dd816615 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[BUGFIX] Change data format for feuserid to string

LDAP Usernames are stored a string
parent 68e695c7
......@@ -94,12 +94,12 @@ class ArticleRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
/**
* Function: getArticlesByUser
* This will return the category based on website domain.
* This will return the articles of a frontend user
*
* @param int $userID
* @param string $userID
* @return \TYPO3\CMS\Extbase\Persistence\Generic\QueryResult|\T3o\T3oPlanet\Domain\Model\Article[]
*/
public function getArticlesByUser(int $userID): \TYPO3\CMS\Extbase\Persistence\Generic\QueryResult
public function getArticlesByUser(string $userID): \TYPO3\CMS\Extbase\Persistence\Generic\QueryResult
{
$query = $this->createQuery();
$query->matching(
......
......@@ -20,10 +20,10 @@ return [
'iconfile' => 'EXT:t3o_planet/Resources/Public/Icons/tx_t3oplanet_domain_model_article.gif',
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, article_status, title, teasertext, article_date, link, is_featured, name, email, image, category_id, tag_id',
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, article_status, title, teasertext, article_date, link, is_featured, name, email, fe_userid, image, category_id, tag_id',
],
'types' => [
'1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, article_status, title, teasertext, link, article_date, is_featured, name, email, image, category_id, tag_id, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'],
'1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, article_status, title, teasertext, link, article_date, is_featured, name, email, fe_userid, image, category_id, tag_id, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'],
],
'columns' => [
'sys_language_uid' => [
......@@ -197,6 +197,7 @@ return [
'type' => 'input',
'size' => 30,
'eval' => 'trim',
'readOnly' => true,
],
],
'image' => [
......
......@@ -10,7 +10,7 @@ CREATE TABLE tx_t3oplanet_domain_model_article (
article_date date NULL DEFAULT NULL,
name varchar(255) DEFAULT '' NOT NULL,
email varchar(255) DEFAULT '' NOT NULL,
fe_userid int(11) DEFAULT '0' NOT NULL,
fe_userid varchar(255) DEFAULT '' NOT NULL,
image int(11) unsigned NOT NULL default '0',
category_id int(11) unsigned DEFAULT '0' NOT NULL,
tag_id int(11) unsigned DEFAULT '0' NOT NULL
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment