Library Save to Copy does not copy folders accurately #1003
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#1003
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Steps to reproduce the issue
Expected result
Save As Copy function should copy all the for data correctly.
Actual result
As described above.
System information (as much as possible)
Win 11
10.4.28-MariaDB
Apache/2.4.56 (Win64) OpenSSL/1.1.1t PHP/8.0.28
8.0.28
3.10.12
3.1.24
Chrome 115.0.5790.110
Additional comments
I can do a record dump of the tables
#__componentbuilder_library
#__componentbuilder_library_files_folders_urls
which I think might be the most useful. You can see that in the newest #__componentbuilder_library_files_folders_urls record, the library field actually points to the wrong record in #__componentbuilder_library. I've traced the code but I've been unable to see where the mixup occurs.
This is currently the code we are looking at:
Which is converted to:
If you can see where my logic is breaking down... we can add a fix.
The copyItem code is found here.