8000 Copy forms and their widgets when making a language copy by sanderdlm · Pull Request #3445 · forkcms/forkcms · GitHub
[go: up one dir, main page]

Skip to content

Copy forms and their widgets when making a language copy#3445

Merged
carakas merged 1 commit intoforkcms:masterfrom
sanderdlm:include-forms-in-pages-copy
Aug 18, 2021
Merged

Copy forms and their widgets when making a language copy#3445
carakas merged 1 commit intoforkcms:masterfrom
sanderdlm:include-forms-in-pages-copy

Conversation

@sanderdlm
Copy link
Contributor

Type

  • Enhancement

Resolves the following issues

/

Pull request description

When making a copy of a language using the hidden Pages copy action, forms would not be duplicated for the new language, and the content blocks on the new pages would still refer to the old form (in the source language). This results in a lot of weird behaviour if you started editing these forms and moving the widgets.

This PR properly duplicates each form (and its fields + validations) found on an active page, updates the language of that form to the new locale and then adds a new content block with the new ID.

@sanderdlm sanderdlm requested a review from a team as a code owner August 10, 2021 12:56
@codecov
8000 Copy link
codecov bot commented Aug 10, 2021

Codecov Report

Merging #3445 (9da5461) into master (79d8054) will decrease coverage by 0.05%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3445      +/-   ##
============================================
- Coverage     27.94%   27.88%   -0.06%     
- Complexity     8131     8145      +14     
============================================
  Files           573      575       +2     
  Lines         30628    30689      +61     
============================================
  Hits           8558     8558              
- Misses        22070    22131      +61     
Flag Coverage Δ
functional 23.79% <0.00%> (-0.06%) ⬇️
installer 3.84% <0.00%> (-0.01%) ⬇️
unit 7.63% <0.00%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
...rmBuilder/Command/CopyFormWidgetsToOtherLocale.php 0.00% <0.00%> (ø)
...er/Command/CopyFormWidgetsToOtherLocaleHandler.php 0.00% <0.00%> (ø)
src/Backend/Modules/Pages/Engine/Model.php 18.83% <0.00%> (-0.26%) ⬇️

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 79d8054...9da5461. Read the comment docs.

@carakas carakas added this to the 5.11.0 milestone Aug 18, 2021
@carakas carakas merged commit 4d52b23 into forkcms:master 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.

2 participants

0