Skip to content

Skip empty images while copying a page - #3545

Merged
carakas merged 1 commit into
masterfrom
dont-copy-empty-images
Apr 7, 2023
Merged

Skip empty images while copying a page#3545
carakas merged 1 commit into
masterfrom
dont-copy-empty-images

Conversation

@tijsverkoyen

Copy link
Copy Markdown
Member

Type

  • Non critical bugfix

Pull request description

Images with an empty src attribute need to be skipped as there is no image. Before this fix an exception was triggered as it was trying to copy the full directory.

Images with an empty src attribute need to be skipped as there is no image.
Before this fix an exception was triggered as it was trying to copy the full directory.
@codecov

codecov Bot commented Mar 1, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (1b0d36c) 27.88% compared to head (eaf4dd5) 27.88%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3545      +/-   ##
============================================
- Coverage     27.88%   27.88%   -0.01%     
- Complexity     8151     8152       +1     
============================================
  Files           575      575              
  Lines         30714    30716       +2     
============================================
  Hits           8565     8565              
- Misses        22149    22151       +2     
Flag Coverage Δ
functional 23.79% <0.00%> (-0.01%) ⬇️
installer 3.84% <0.00%> (-0.01%) ⬇️
unit 7.69% <0.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
src/Backend/Modules/Pages/Actions/Add.php 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@carakas
carakas merged commit 9ad5f69 into master Apr 7, 2023
@carakas
carakas deleted the dont-copy-empty-images branch April 7, 2023 11:30
@carakas carakas added this to the 5.11.2 milestone Apr 7, 2023
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