? Failure
Related to # 4308

User tests: Successful: Unsuccessful:

avatar phproberto
phproberto
25 Nov 2014

This PR broke event B/C #4308

The default context passed to plugins on JModelAdmin save was:

$this->option . '.' . $this->name`

and it was replaced by:

$context = $this->option . '_' . $this->name;

That breaks all the existing plugins triggered before and after save events.

See:
https://github.com/joomla/joomla-cms/pull/4308/files#diff-39b4bc5cb02bbace2ee4febe8f54583eR1079

avatar phproberto phproberto - open - 25 Nov 2014
avatar jissues-bot jissues-bot - change - 25 Nov 2014
Labels Added: ?
avatar phproberto
phproberto - comment - 25 Nov 2014

Please do not merge as I want to create a getContext() function that:

  • Will avoid this small errors in the future
  • Will allow us to override the context
avatar phproberto phproberto - change - 25 Nov 2014
The description was changed
avatar brianteeman brianteeman - change - 25 Nov 2014
Rel_Number 4308
Relation Type Related to
avatar amazeika
amazeika - comment - 25 Nov 2014

@phproberto Thank you for noticing and reporting the issue with the typo that got introduced on our PR #4308. We've just submitted a PR for fixing this exact issue (see #5205). Thank you again.

avatar Bakual
Bakual - comment - 25 Nov 2014

I'm closing this PR since I already merged the fix by @amazeika and said to not merge it yet anyway.

@phproberto Feel free to reopen if it's ready.

avatar Bakual Bakual - close - 25 Nov 2014
avatar Bakual Bakual - change - 25 Nov 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-11-25 18:42:50
avatar phproberto
phproberto - comment - 25 Nov 2014

Thanks @amazeika for the fast fix :) and thanks @Bakual for merging it. I'll prepare a new PR with the context changes which is much better because now the issue is already fixed.

avatar amazeika
amazeika - comment - 26 Nov 2014

@phproberto No probs :). I really think that having the fix pushed first was very important. @Bakual did a great job on merging it almost instantly. The proposition you've made for the context getter is a good idea. This will certainly help on avoiding small errors with big consequences such as this.

Add a Comment

Login with GitHub to post a comment