Skip to content

Commit

Permalink
bug #4001 Do not drop specific css class on transform field (zorn-v)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 3.0.x-dev branch.

Discussion
----------

Do not drop specific css class on transform field

Fixes #3997

<!--
Thanks for your contribution! If you are proposing a new feature that is complex,
please open an issue first so we can discuss about it.

Note: all your contributions adhere implicitly to the MIT license
-->

Commits
-------

94b682b Do not drop specific css class on transform field
  • Loading branch information
javiereguiluz committed Dec 3, 2020
2 parents b97dc22 + 94b682b commit cd7b271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factory/FieldFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private function transformField(FieldDto $fieldDto, string $newFieldFqcn): Field
$newField->setDisplayedOn($fieldDto->getDisplayedOn());
$newField->setValue($fieldDto->getValue());
$newField->setFormattedValue($fieldDto->getFormattedValue());
$newField->setCssClass($fieldDto->getCssClass());
$newField->setCssClass(trim($newField->getCssClass().' '.$fieldDto->getCssClass()));
$newField->setTranslationParameters($fieldDto->getTranslationParameters());
$newField->setAssets($newField->getAssets()->mergeWith($fieldDto->getAssets()));

Expand Down

0 comments on commit cd7b271

Please sign in to comment.