Bug in duplicate() function

Permalink Browser Info Environment
I have one spesific page type in which I included the FileTree block in the page's Page Defaults. After creating a new page of that type, the FileTree was there as it should, but after I put the page in edit mode and tried to change some settings on the FileTree edit dialog, an MySQL error occured. In this case, the original block is actually an alias from the Page Defaults and Concrete creates a copy of on save. Same error occures if you try to copy the Filetree block to Clipboard and paste it to another page.

Here's the line 281 from FileTree block's controller:
$new = parent::duplicate();


I think it should be:
$new = parent::duplicate($newBlockID);


The latter seems to work as it should.

Type: Discussion
Status: New
Ale
View Replies:
ConcreteConversion replied on at Permalink Reply
ConcreteConversion
Hello, that's a great find! Thank you very much, I'll put this in a patch update soon.

Best regards,
Andreas
Ivento

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.