Skip to content

Commit

Permalink
Merge branch '7.1' into 7.x
Browse files Browse the repository at this point in the history
* 7.1:
  Fix exporting form submission
  Override getPathByConvention function in MenuItemAdminListConfigurator so it returns the correct path
  Fix getCurrentFullHost return type
  • Loading branch information
acrobat committed Jun 9, 2024
2 parents 6cfff87 + 425550a commit 458ee42
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ public function buildIterator()

$collection = new ArrayCollection();
$i = 0;
foreach ($iterableResult as $row) {
foreach ($iterableResult as $submission) {
/* @var FormSubmission $submission */
$submission = $row[0];

// Write row data
$data = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ protected function getMockedEntityManager(): \Doctrine\ORM\EntityManager
]));

$submissions = [
[$sub],
[new FormSubmission()],
[new FormSubmission()],
$sub,
new FormSubmission(),
new FormSubmission(),
];
$query = $this->getMockBuilder('Doctrine\ORM\AbstractQuery')
->disableOriginalConstructor()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,18 @@ public function getLimit()
{
return 1000;
}

/**
* @param string|null $suffix
*
* @return string
*/
public function getPathByConvention($suffix = null)
{
if (null === $suffix || $suffix === '') {
return 'kunstmaanmenubundle_admin_menuitem';
}

return sprintf('kunstmaanmenubundle_admin_menuitem_%s', $suffix);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getCurrentHost(): string
return $this->domainConfiguration->getHost();
}

public function getCurrentFullHost(): array
public function getCurrentFullHost(): ?array
{
return $this->domainConfiguration->getFullHost();
}
Expand Down

0 comments on commit 458ee42

Please sign in to comment.