? ? Failure

User tests: Successful: Unsuccessful:

avatar thongredweb
thongredweb
3 Jul 2017

Pull Request for Issue #16740

Summary of Changes

Add import plugin and run event for articles when do an batch copy or batch move to make sure these new article (Batch - copy) or changed articles (Batch - move) still have event stuff same as create / edit single article.

Testing Instructions

  • Create 2 categories: "Category 1" and "Category 2"
  • Create 2 fields: "Field 1" and "Field 2"
  • Assign "Field 1" and "Field 2" for "Category 1"
  • Assign "Field 1" for "Category 2"
  • Create an "Article 1", assign for "Category 1", enter data for custom fields "Field 1" and "Field 2"
  • Go to Articles Management page, check for select "Article 1" in list, press button "Batch", choose "Category 2", choose "Copy" and press "Process"
  • Go to Articles Management page, check for select "Article 1" in list, press button "Batch", choose "Category 2", choose "Move" and press "Process"

Expected result

  • For "Batch - Copy" process, new "Article 1" has been created in "Category 2". Custom field data for "Field 1" was copied too.
  • For "Batch - Move" process, "Article 1" has been assigned to "Category 2". Custom field data for "Field 1" still stay with this article.

Actual result

  • For "Batch - Copy" process, Custom fields data has been gone.
  • For "Batch - Move" process, Custom fields data has been gone.

Documentation Changes Required

avatar thongredweb thongredweb - open - 3 Jul 2017
avatar thongredweb thongredweb - change - 3 Jul 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jul 2017
Category Administration com_content
avatar thongredweb thongredweb - change - 3 Jul 2017
The description was changed
avatar thongredweb thongredweb - edited - 3 Jul 2017
avatar mbabker
mbabker - comment - 3 Jul 2017

This actually really needs to be done in a spot where it would automatically pick it up if an extension supports fields in general (so every extension doesn't have to duplicate this logic).

Adding onContentAfterSave to the batch loop also needs to be thoroughly tested.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Jul 2017

@mbabker its to early for Test?


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

avatar thongredweb
thongredweb - comment - 4 Jul 2017

This actually really needs to be done in a spot where it would automatically pick it up if an extension supports fields in general (so every extension doesn't have to duplicate this logic).
--> Because store fields data is handled via plugin system, so if any extension supports fields in general they have to import plugin group system and trigger event onContentAfterSave for each object data implement fields.

Actually batch loop is an list of single object for create / edit. They have to be trigger event in each of them as single article.

avatar zero-24 zero-24 - change - 5 Jul 2017
Labels Added: ?
avatar laoneo
laoneo - comment - 6 Jul 2017

Perhaps we should consider to introduce a new batch event which sends all articles in one event, instead of one event per article.

avatar thongredweb
thongredweb - comment - 7 Jul 2017

@laoneo I don't think that is good idea. If we add new event for batch of articles, the scope of progress will not correct for other extensions. Let say if I write event on Article save, I need to write another block code for batch of articles. Code duplicated with exactly do the same.

avatar coolcat-creations coolcat-creations - test_item - 8 Dec 2017 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 8 Dec 2017

I have tested this item successfully on 799a874

Tested successfully


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

avatar Joomill Joomill - test_item - 10 Dec 2017 - Tested successfully
avatar Joomill
Joomill - comment - 10 Dec 2017

I have tested this item successfully on 799a874


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 10 Dec 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 10 Dec 2017

Ready to Commit after two successful tests.

avatar zero-24 zero-24 - change - 7 Feb 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-02-07 00:27:17
Closed_By zero-24
Labels Added: ?
avatar zero-24 zero-24 - close - 7 Feb 2018
avatar zero-24 zero-24 - merge - 7 Feb 2018
avatar zero-24
zero-24 - comment - 7 Feb 2018

Merged based on the tests above ?

Add a Comment

Login with GitHub to post a comment