?
Duplicate of # 13278
avatar UWiX-nl
UWiX-nl
19 Dec 2016

Steps to reproduce the issue

  1. Go to Backend->Extensions->Manage->Update Sites and (un)publish an update site in the listing.
  2. Try to catch the event using OnContentChangeState in a Plugin (why this event? 'cause every other changestate works through this event - so it's expected to use this one ;-) ).

Expected result

The plugin function should be triggered.

Actual result

No result because the trigger does not exists for (un)publishing Update sites.

System information (as much as possible)

PHP Version 7.0.9
Web Server Apache 2.4.23 (Win32)
Joomla! version 3.6.5
User Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

Additional comments

Suggestion to add a trigger event to administrator/components/com_installer/models/updatesites.php called OnUpdateSiteChangeStage. Add the following code at line 109 (in the function publish):

$context = $this->option . '.' . $this->name;
JEventDispatcher::getInstance()->trigger('onUpdateSiteChangeState', array($context, $eid, $value));

The event name onContentChangeState is not logical because this new event must be started from within a System plugin (if I am correct).

avatar UWiX-nl UWiX-nl - open - 19 Dec 2016
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Dec 2016
avatar rvbgnu
rvbgnu - comment - 3 Jun 2017

Duplicate of #13278
@nibra

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Jun 2017
Rel_Number 0 13278
Relation Type Related to
avatar franz-wohlkoenig franz-wohlkoenig - change - 25 Jun 2017
Status New Duplicate Report
Closed_Date 0000-00-00 00:00:00 2017-06-25 12:40:37
Closed_By franz-wohlkoenig
Relation Type Related to Duplicate of
avatar joomla-cms-bot joomla-cms-bot - close - 25 Jun 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 25 Jun 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Jun 2017

closed as duplicate Report.


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

Add a Comment

Login with GitHub to post a comment