New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Product Clone - Categories are not cloned (none selected) for newly cloned products #2714
Comments
Did this just start happening at CC642 for you? Will you confirm that there was not this issue for CC641? I find no difference in code that would affect cloning. |
Not tested in 641
…On Tue, 8 Dec 2020, 8:16 pm Brian Smither, ***@***.***> wrote:
Did this just start happening at CC642 for you? Will you confirm that
there was not this issue for CC641?
I find no difference in code that would affect cloning.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2714 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQ7KAV27KCOFQIS6PAL5K3ST2CQNANCNFSM4URVC6LA>
.
|
I cannot duplicate. The cloned product has the same categories assigned as the source product as seen in CubeCart_category_index and CubeCart_inventory. |
On a clean install of 642?
…On Tue, 8 Dec 2020, 9:27 pm Brian Smither, ***@***.***> wrote:
I cannot duplicate. The cloned product has the same categories assigned as
the source product as seen in CubeCart_category_index and
CubeCart_inventory.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2714 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQ7KAUN7DOBMJN2TCRHXC3ST2K2JANCNFSM4URVC6LA>
.
|
Yes and no. I pepper tracer code at points of interest. But the actual core code is not changed. |
On upgrade (6.4.2.) no problem here. |
The code to clone is stupid-simple. The primary category is always cloned. If you have debug enabled, are there queries shown on the POST portion of the debug area that relate to INSERTing new records in CubeCart_inventory, CubeCart_category_index, etc? The difference I see is that my settings will have CubeCart auto-redirect to the cloned product. |
There is, however, a remote possibility that, if the database is not also "fresh", there could be some problem. |
Found it (highly probable). And there are likely numerous other situations where this scenario will get triggered. A key component is that the admin doing the tasks must have logged in for less than four times. In Following the path of code execution, Relevant to #2670 and especially #2690 as an example, in products.index.inc.php, near line 529, there is code fetching a value from But as has been learned before, there could be other database work between the In this issue's case, the For another case, adding a new category (line 101 of categories.index.inc.php) on a fresh install (meaning, fresh database) will mess with the SEO path. Suggest finding every instance of With respect to the improved fix for 2670, that was actually necessary. But, in that code, because what immediately follows that instance of |
I can't reproduce this and the changes for last_insert ID should stabilise this further. I will reopen if the issue persists with 6.4.6. Thanks guys. I'm so behind with maintenance but on it while I can. |
as per title, in 6.4.2 all cloned products have no categories assigned, making them invalid until manually assigned.
The text was updated successfully, but these errors were encountered: