“Copy Files” toggle is ignored when duplicating a page #6885
Labels
needs: information ❓
Requires more information to proceed
needs: replication 🔬
Requires a sample to reproduce the issue
Description
When duplicating a page with images, I have to option to set a toggle whether to copy these files or not. But no matter what option it is set to, the files are always copied.
Expected behavior
When the toggle is set to
false
, no files should appear in the duplicated page.This looks like the problem. Shouldn’t it be
if ($files !== false) { …
?kirby/src/Cms/PageActions.php
Lines 470 to 479 in 94cc37e
To reproduce
Your setup
Kirby Version
4.5.0 (but has been around before)
Your system (please complete the following information)
The text was updated successfully, but these errors were encountered: