Skip to content
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

Cleanup batch copy of items #13501

Merged
merged 8 commits into from Aug 19, 2018
Merged

Conversation

wilsonge
Copy link
Contributor

@wilsonge wilsonge commented Jan 7, 2017

Summary of Changes

Cleanup of the batch copy'ing of data. This introduces a empty post processing of batch copied data in order for com_content to add items into the frontpage table (and other components to do whatever processing they want).

Testing Instructions

Test Banners, Newsfeeds and contact work as is (there are no changes here - they just implement the parent method which is the same)

In com_content test batch copying with items that are featured and aren't featured and ensure that items are created correctly in the #__content_frontpage table

Documentation Changes Required

None

@webnet-assmann
Copy link

webnet-assmann commented Feb 5, 2017

banner

@joomlamarco
Copy link

I have tested this item 🔴 unsuccessfully on 44f856d

Banner creates an error.News, Contact works fine. The entries into table #_content_frontpage are correct.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13501.

@wilsonge
Copy link
Contributor Author

wilsonge commented Feb 5, 2017

Hey both. can you please tell me what errors you are getting. I can't seem to reproduce anything at the moment (I have merged in staging since you both tested so it might be simply related to that)

@webnet-assmann
Copy link

See the Screenshot, i've uploaded

@wilsonge
Copy link
Contributor Author

wilsonge commented Feb 5, 2017

Hmm I definitely can't reproduce. Can you please try again on a clean copy of staging/nightly. Maybe just merging in staging now fixed something?

@webnet-assmann
Copy link

Reproduced it on a nightly build - same error. It's localhost with xampp on windows10 php7.0.9

@webnet-assmann
Copy link

Feel free to contact @zero-24

@zero-24
Copy link
Contributor

zero-24 commented Feb 5, 2017

Hmm I definitely can't reproduce. Can you please try again on a clean copy of staging/nightly. Maybe just merging in staging now fixed something?

@wilsonge it is about the different sql definition https://github.com/joomla/joomla-cms/blob/staging/installation/sql/mysql/joomla.sql#L111 for banners the title field is called name so we need a extra case for that 😄

@wilsonge
Copy link
Contributor Author

wilsonge commented Feb 5, 2017

Umm i don't understand how I can't reproduce this cause clearly you are correct. But I guess this latest version should fix things?

@webnet-assmann
Copy link

I have tested this item ✅ successfully on 1121efe

Everything is fine now :-)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13501.

@wilsonge
Copy link
Contributor Author

Merged in staging

@roland-d
Copy link
Contributor

@wilsonge Is this merged?? If not, can you update the merge conflicts?

@priiish
Copy link

priiish commented Jul 24, 2018

I have tested this item 🔴 unsuccessfully on 2952f2a

- Tried to copy banner to another category via batch feature

  • error coming up:
    "Argument 1 passed to Joomla\CMS\MVC\Model\AdminModel::cleanupPostBatchCopy() must be an instance of Joomla\CMS\MVC\Model\JTableInterface, instance of BannersTableBanner given, called in
    <path-to-joomla!>/Joomla_3/libraries/src/MVC/Model/AdminModel.php on line 450
    <path-to-joomla!>/Joomla_3/libraries/src/MVC/Model/AdminModel.php:472"

therefore tested unsuccessful

@icampus


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13501.

@brianteeman
Copy link
Contributor

I have tested this item ✅ successfully on 7ec4d5d


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13501.

@rdeutz rdeutz added this to the Joomla 3.8.12 milestone Aug 19, 2018
@rdeutz rdeutz merged commit 7fe9f07 into joomla:staging Aug 19, 2018
@wilsonge wilsonge deleted the cleanup-batch-copy branch August 19, 2018 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants