Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

ContentAlias element now preserves original values of the aliased element #6638

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions system/modules/core/elements/ContentAlias.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@ public function generate()
return '';
}

$objElement->originalId = $objElement->id;
$objElement->id = $this->id;
$objElement->typePrefix = 'ce_';

$objElement = new $strClass($objElement);

// Overwrite spacing and CSS ID
$objElement->originalSpace = $objElement->space;
$objElement->space = $this->space;
$objElement->originalCssID = $objElement->cssID;
$objElement->cssID = $this->cssID;

return $objElement->generate();
Expand Down