Bug #89293

Slug not automatically generated when adding record with repository add method

Added by Florian Rival about 1 year ago. Updated about 1 year ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2019-09-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
slug repository
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

If you add a record from FE form and your record has a slug field defined in TCA, the slug isn't automatically inserted when inserting the data with xxxrepository->add($myRecord).

In my opinion, the slug field must be set if it is empty as it's done when you insert a record in the BE.

Florian

#1

Updated by Georg Ringer about 1 year ago

  • Status changed from New to Rejected

Thanks for creating the issue.

Extbase doesn't use the datahandler for persisting and therefore doesn't know anything about slug handling.

Please update the slug in your own code using \TYPO3\CMS\Core\DataHandling\SlugHelper

Also available in: Atom PDF