Skip to content

Commit

Permalink
Merge branch 'release/1.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Fischer committed Apr 15, 2024
2 parents a1f7704 + 2ac8406 commit 5419cef
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Classes/Xclass/ContainerGridColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public function getCollapsed(): bool

public function getChildAllowedTypesCount(): int
{
if (!($this->definition['allowDirectNewLink'] ?? false)) {
return PHP_INT_MAX;
}

$allowed = $this->definition['allowed'] ?? [];
$cType = explode(',', $allowed['CType'] ?? '');
$listType = explode(',', $allowed['list_type'] ?? '');
Expand All @@ -55,6 +59,10 @@ public function getChildAllowedTypesCount(): int

public function getNewContentUrl(): string
{
if (!($this->definition['allowDirectNewLink'] ?? false)) {
return parent::getNewContentUrl();
}

$pageId = $this->context->getPageId();

$urlParameters = [
Expand Down
4 changes: 4 additions & 0 deletions Classes/Xclass/ContainerGridColumnItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class ContainerGridColumnItem extends BaseContainerGridColumnItem
{
public function getNewContentAfterUrl(): string
{
if (!($this->column->getDefinition()['allowDirectNewLink'] ?? false)) {
return parent::getNewContentAfterUrl();
}

$urlParameters = [
'edit' => [
'tt_content' => [
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'author_email' => '[email protected]',
'author_company' => 'evoWeb',
'state' => 'stable',
'version' => '1.3.0',
'version' => '1.3.1',
'constraints' => [
'depends' => [
'typo3' => '11.5.0-12.4.99',
Expand Down

0 comments on commit 5419cef

Please sign in to comment.