? Success

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
4 Dec 2014

Fixes #5312

This PR updates the $contexts array when items are copied and at the same time, the language of the new copy is changed. This assumes that the context of each item is the same... I'm not sure that is always the case and thus someone else has to review this.

Thanks for the bug report @infograf768
Could you provide test instructions?

avatar Hackwar Hackwar - open - 4 Dec 2014
avatar jissues-bot jissues-bot - change - 4 Dec 2014
Labels Added: ?
avatar infograf768
infograf768 - comment - 4 Dec 2014

Test instructions:
Select a module which language is set to "All".
Click on the Batch button.
set the batch params as such:
batch change module

One will get
[04-Dec-2014 10:48:14 UTC] PHP Notice: Undefined offset: 132 in ROOT/libraries/legacy/model/admin.php on line 477
where "132" is the id of the new module

This PR does NOT solve the issue here.

avatar Hackwar
Hackwar - comment - 4 Dec 2014

Could you quickly test this at your end? If not fixing it, it should at least improve it...

avatar infograf768
infograf768 - comment - 4 Dec 2014

same

avatar Hackwar
Hackwar - comment - 4 Dec 2014

I changed this further. If this does not work, I'm really stumped... :wink:

avatar smanzi
smanzi - comment - 5 Dec 2014

@Hackwar I tried to reproduce your issue, but I can't...

Where do you see the error message?

Here I'm using PHP 5.6.3 with error_reporting = E_ALL

avatar smanzi
smanzi - comment - 6 Dec 2014

@Hackwar forget it! I found it... sorry :blush:

avatar smanzi
smanzi - comment - 6 Dec 2014

... but, with your PR applied, I'm still getting this:
[Sat Dec 06 01:13:14.349446 2014] [:error] [pid 5392:tid 1648] [client 127.0.0.1:49338] PHP Notice: Undefined offset: 91 in D:\\UniServerZ\\vhosts\\smztest\\libraries\\legacy\\model\\admin.php on line 480, referer: http://my.test.smz.it/administrator/index.php?option=com_modules&view=modules

avatar Hackwar
Hackwar - comment - 6 Dec 2014

Ok, so I looked into this further and we basically have this bug everywhere where we implemented the batch feature... Please test this now again. I guess I caught all.

avatar smanzi
smanzi - comment - 6 Dec 2014

@Hackwar Seems to be alright now, Hannes!

While you're into the batch thing, can you look at #5304 "Problem 3"? It is a minor thing and in a way a documented "feature", but IMHO the behavior is at least... "not elegant". In #5304 (comment) I explain what I would expect as a normal behavior.

Thanks!

avatar Hackwar
Hackwar - comment - 6 Dec 2014

Hi @smanzi, I saw those issues and while we can fix those at some point in time, I would rather not complicate this PR by adding even more to it. Lets first treat this one and then tackle the rest later.

avatar smanzi
smanzi - comment - 6 Dec 2014

@Hackwar I totally agree! I was not asking to integrate a fix for that "glitch" into this... It was just an "Hey, take a look at that!" :smile:

avatar smanzi smanzi - test_item - 6 Dec 2014 - Tested successfully
avatar brianteeman brianteeman - change - 6 Dec 2014
Category Administration
avatar smanzi
smanzi - comment - 6 Dec 2014

I don't see any regression, so... @test success!

avatar Kubik-Rubik Kubik-Rubik - test_item - 7 Dec 2014 - Tested successfully
avatar Kubik-Rubik
Kubik-Rubik - comment - 7 Dec 2014

Tested successfully! Thank you @Hackwar for the fix.

2 tests -> RTC

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

avatar Kubik-Rubik Kubik-Rubik - change - 7 Dec 2014
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 7 Dec 2014

Not RTC yet. The PR works for the components patched
I see the same issue for articles, newfeeds and categories. (When patching the same way in batchCopy () as done for contact in this PR, it solves the issue here.)

avatar infograf768 infograf768 - change - 7 Dec 2014
Status Ready to Commit Pending
avatar Hackwar
Hackwar - comment - 7 Dec 2014

Done. I plan on investing some time into the batch code... There seem to be some more improvements possible, but I will work on that in another PR.

avatar smanzi
smanzi - comment - 7 Dec 2014

@test success
Confirmed now working for other components too
RTC?

avatar Kubik-Rubik
Kubik-Rubik - comment - 7 Dec 2014

Also tested the other components properly! All occurrences are now considered.

@Hackwar Thank you for the fast reaction.

Now is should be okay to set to RTC! :-)

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

avatar Kubik-Rubik Kubik-Rubik - change - 7 Dec 2014
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 8 Dec 2014

Merging, thanks.

@Hackwar
I guess same changes are necessary for weblinks in its own repo.

avatar infograf768 infograf768 - close - 8 Dec 2014
avatar infograf768 infograf768 - reference | 8b308a8 - 8 Dec 14
avatar infograf768 infograf768 - merge - 8 Dec 2014
avatar infograf768 infograf768 - close - 8 Dec 2014
avatar infograf768 infograf768 - change - 8 Dec 2014
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2014-12-08 07:15:01
avatar infograf768 infograf768 - change - 8 Dec 2014
Milestone Added:
avatar Hackwar Hackwar - head_ref_deleted - 9 Dec 2014

Add a Comment

Login with GitHub to post a comment