Skip to content

Commit

Permalink
Merge branch '9.2.x' into misc-fixes-120623
Browse files Browse the repository at this point in the history
  • Loading branch information
aembler authored Dec 7, 2023
2 parents 4a963a1 + 4075c46 commit 06e7e33
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 6 deletions.
4 changes: 2 additions & 2 deletions concrete/blocks/image/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@
$thumb = $im->getThumbnail($f, $maxWidth, $maxHeight, $cropImage);

$imageTag->setAttribute("src", $thumb->src);
$imageTag->setAttribute("width", $thumb->width);
$imageTag->setAttribute("height", $thumb->height);
$imageTag->setAttribute("width", $thumb->width ?? null);
$imageTag->setAttribute("height", $thumb->height ?? null);

break;
}
Expand Down
2 changes: 1 addition & 1 deletion concrete/config/concrete.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
'version' => '9.2.4',
'version_installed' => '9.2.4',
'version_db' => '20231002142400', // the key of the latest database migration
'version_db' => '20231207100748', // the key of the latest database migration

/*
* Installation status
Expand Down
2 changes: 1 addition & 1 deletion concrete/src/Entity/Announcement/AnnouncementUserView.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AnnouncementUserView
/**
* @ORM\Id
* @ORM\ManyToOne(targetEntity="Concrete\Core\Entity\User\User")
* @ORM\JoinColumn(name="uID", referencedColumnName="uID")
* @ORM\JoinColumn(name="uID", referencedColumnName="uID", onDelete="CASCADE")
*/
protected $user;

Expand Down
4 changes: 2 additions & 2 deletions concrete/src/Updater/ApplicationUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public static function get($dir)
{
$version_file = DIR_CORE_UPDATES . "/{$dir}/" . DIRNAME_CORE . '/config/concrete.php';

$concrete = @include $version_file;
if ($concrete['version'] != false) {
$concrete = is_file($version_file) ? @include $version_file : null;
if (is_array($concrete) && !empty($concrete['version'])) {
$obj = new self();
$obj->version = $concrete['version'];
$obj->identifier = $dir;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

declare(strict_types=1);

namespace Concrete\Core\Updater\Migrations\Migrations;

use Concrete\Core\Entity\Announcement\AnnouncementUserView;
use Concrete\Core\Updater\Migrations\AbstractMigration;
use Concrete\Core\Updater\Migrations\RepeatableMigrationInterface;

final class Version20231207100748 extends AbstractMigration implements RepeatableMigrationInterface
{
/**
* {@inheritdoc}
*
* @see \Concrete\Core\Updater\Migrations\AbstractMigration::upgradeDatabase()
*/
public function upgradeDatabase()
{
$this->refreshEntities([
// Fix deleting rows in UserFavoriteFolders table when deleting a user.
AnnouncementUserView::class,
]);
}
}

0 comments on commit 06e7e33

Please sign in to comment.