-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.0] Media Manager Events correctly triggered #28886
Conversation
Now Media Action - Resize plugin doesn't work. |
Good catch, I guess 45165a5 should fix that |
Is that also spposed to solve #28842 |
@infograf768 partly.
This should be ok now. Reason was that one of the current events had a wrong signature (expected to be called with 4 params but was called with 3) |
|
||
return $object->name; | ||
return $name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure but we returned here the name attribute of the object because plugins could change it during the event.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I'll change that
Ref: #28886 (comment) & #28842 (comment) |
Sorry I misunderstood, I was talking about renaming to something different. |
I have not tested this item. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28886. |
it is created in the plugin's folder: |
@adj9 I think that's ok as the plugin is a dummy implementation to showcase that the events are triggered correctly, in other words it doesn't actually do what it was supposed to do |
so it's only a problem related to the com_actionlogs ? |
@alikon do components require special code to trigger anything for the com_actionlogs? |
I have tested this item ✅ successfully on 5b27cf6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28886. |
1 similar comment
I have tested this item ✅ successfully on 5b27cf6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28886. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28886. |
Thanks! |
Pull Request for Issues #28877 #28878
Summary of Changes
Refactor the Model to trigger the correct Events with the correct payload for files/folders created/updated/deleted
Testing Instructions
Download install and enable the following plugin
mediamanagertest.zip
Test steps:
Check plugins/content/mediamanagertest for a file log.txt the contents should be like
Expected result
Actual result
Documentation Changes Required
No, bug fix
Remarks:
@laoneo @dneukirchen