Copy pages with "add layout" function - bug?

Permalink 1 user found helpful
Hi,

Pages that were created with the new layout to add "function, not copied.
Is this a bug?

How are things in future versions continue with this new feature?

Greetings!

uli

 
Tony replied on at Permalink Reply
Tony
you will be able to copy pages with layouts in concrete5.4.1. I'm not sure when that will be released, but the fix is available in the svn trunk, in /concrete/models/collection.php, within duplicate().
ngaby replied on at Permalink Reply
ngaby
hi,

In the meantime (until 5.4.1 is released) how can this fix be applied?, is it enough to copy funcion duplicate() in the old collection.php?

Thank you, Tony
Tony replied on at Permalink Reply
Tony
yes.
ngaby replied on at Permalink Reply
ngaby
Thanks Tony,

At first it gave me a funny error message on something related to cDateLastIndexed field, but after closing windows the page copied was there so somehow it worked,nevertheless.

Not enough for my client, (didn't want any magic...) I tried deleting the line (180 in colection.php) 'cDateLastIndexed' => $datetime, and now it works just fine.

I can't understand it cause I'm not a programmer but it may be helpful to someone else.

Thank you again for your help