User tests: Successful: Unsuccessful:
Adapting code to the new columns featured_up and featured_down
Select a featured or a non-featured article and batch copy it to another category.
Fails
All is fine
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_content |
Yes, just tested: With this PR the error goes away and success message is shown, but then I can't see any copied article.
Update: Can't see because it doesn't exist. Copying failed.
even if the article is present in the #__content
table
maybe workflow ???
Yes, in DB they exist, the copied ones have state=0. But then I set filter to show also trashed items I don't see them.
No PHP warning or notice or error, nothing in MySQL log.
almost certainly workflow related.
You can strike through the "almost" I would say.
i was being polite
politically incorrect comment "i hate workflow"
Question is how we shall coninue with this PR here? It fixes the error "1136 Column count doesn't match value count at row 1" when batch copying a featured article. The general problem we've discovered here, should that be handled in a separate issue?
The general problem we've discovered here, should that be handled in a separate issue?
We can separate if we merge this fast. Otherwise It can be closed and included in the full patch.
Labels |
Added:
?
|
I have tested this item
Fixes the error "1136 Column count doesn't match value count at row 1" when batch copying a featured article.
Other problems with batch processing are out of scope of this PR.
Title |
|
Modified title to fit.
AFAIK com_content has not been converted to prepared statement.... maybe some MVC libraries...
@infograf768 Please check infograf768#54. It implements @SharkyKZ 's comment that the dates of the copied article shall be used. Unfortunately it does not solve the other, more global problem.
@richard67 See my comment in your PR
I have tested this item
Everything works normally, and the new article is added to the content and content_froentend table. But, the new article is not shown in the list.
@anibalsanchez
The PR does not solve fully Batch Copy, it only solves the error due to wrong columns for featured_up and featured_down.
Solving fully batch copy will require another PR.
@anibalsanchez Please test again with respect to the comment in my previous test result above:
Fixes the error "1136 Column count doesn't match value count at row 1" when batch copying a featured article.
Other problems with batch processing are out of scope of this PR.
I have tested this item
Fixes the error "1136 Column count doesn't match value count at row 1" when batch copying a featured article.
The general problem that batch copied articles are not visible in the list view but exist in the database is not subject of this PR and has to be handled separately.
The reason for the other, general issue is that for the copied items no workflow assiciations are inserted.
Workflow associations are joined for each item with an inner join on the item id in the list query.
So the copied items are not shown because in database they definitely don't have corresponding records in the workflow associations table.
I've just made a PR to @infograf768 's branch to solve the general problem, too. If he wants, he may merge it and change scope of this PR to solve the batch copy problem in general.
But I am not sure if that is the correct final solution. Maybe it was intended that workflow for batch copied items starts from beginning. But then it seems it was not implemented and just nothing was done, i.e. the batch copied items did not have a workflow association. That's fixed if JM merges my PR, and I think for now that's sufficient. Otherwise, if he wants to keep things separate, I can make a new PR here.
@infograf768 As @wilsonge commented here infograf768#55 (comment), my PR infograf768#55 seems to be ok. Do you want to merge it into this PR so it can be tested?
even if, apart wilsonge thinking,
i second this
I haven’t tested it but if it works it’s definitely the better fix to use the post install cleanup and the built in library
Post install cleanup?
How is the post install cleanup related to this here?
I meant the cleanupPostBatchCopy
method :)
Ah now I understand.
Was confused because there is also a cleanup of post install messages issue ;-)
Where do we stand here?
@infograf768 As said above: Merge my PR for you, change title and description of this PR here so it‘s clear that it solves the issue with batch copying articles in general, also if not featured, then refer to this PR here in Brian‘s issue and finally wait for testers.
@richard67
Done.
@infograf768 Now it needs to change title and description of this PR so it is clear that it solves the issue with batch copying articles in general, also if not featured. I can't do this for you now because am at work. I'll leave a reference to this PR in Brian's issue.
Title |
|
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-11-14 16:16:24 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Thanks!
article copy to another category don't work, even with non featured article
and i'm testing with mysql