8000 Fix mapping old content blocks when copying pages by jonasdekeukelaere · Pull Request #3442 · forkcms/forkcms · GitHub
[go: up one dir, main page]

Skip to content

Fix mapping old content blocks when copying pages#3442

Merged
carakas merged 1 commit intoforkcms:masterfrom
jonasdekeukelaere:fix-copy-content-blocks
Aug 18, 2021
Merged

Fix mapping old content blocks when copying pages#3442
carakas merged 1 commit intoforkcms:masterfrom
jonasdekeukelaere:fix-copy-content-blocks

Conversation

@jonasdekeukelaere
Copy link
Member

Type

  • Non critical bugfix

Pull request description

When copying pages with content blocks on, through the hidden copy pages action, the mapping of old to new content block/module extra id didn't work properly. The block extra id was a string and the content block extra id was an int. With the strict parameter of in_array, this wasn't mapped correctly after the copy.

@codecov
Copy link
codecov bot commented Aug 6, 2021

Codecov Report

Merging #3442 (4e02ace) into master (4b60c18) will increase coverage by 0.33%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3442      +/-   ##
============================================
+ Coverage     27.61%   27.94%   +0.33%     
- Complexity     8115     8129      +14     
============================================
  Files           572      573       +1     
  Lines         30975    30613     -362     
============================================
+ Hits           8553     8556       +3     
+ Misses        22422    22057     -365     
Flag Coverage Δ
functional 23.84% <0.00%> (+0.24%) ⬆️
installer 3.85% <0.00%> (+0.04%) ⬆️
unit 7.64% <0.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Backend/Modules/Pages/Engine/Model.php 19.08% <0.00%> (-0.50%) ⬇️
src/Common/Core/Cookie.php 64.28% <0.00%> (ø)
src/Common/Form/FileType.php 0.00% <0.00%> (ø)
src/Common/Form/ImageType.php 0.00% <0.00%> (ø)
src/Backend/Form/Type/MetaType.php 0.00% <0.00%> (ø)
src/ForkCMS/Utility/Geolocation.php 0.00% <0.00%> (ø)
src/ForkCMS/Google/TagManager/DataLayer.php 0.00% <0.00%> (ø)
src/ForkCMS/Google/TagManager/TagManager.php 0.00% <0.00%> (ø)
...ckend/Modules/MediaLibrary/Manager/TreeManager.php 0.00% <0.00%> (ø)
... and 38 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88b5830...4e02ace. Read the comment docs.

@carakas carakas merged commit dbf8350 into forkcms:master Aug 18, 2021
@carakas carakas added this to the 5.11.0 milestone Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0