? ? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
26 Apr 2019

Pull Request for Issue #8600.

Summary of Changes

let's copy permission too

Testing Instructions

  • Create a category.
  • Go to its permission tab and make a change. (e.g registered->allow creating)
  • Go to Batch and Copy it somewhere else.

Expected result

the permission are copyed

Actual result

permission are not copied

avatar alikon alikon - open - 26 Apr 2019
avatar alikon alikon - change - 26 Apr 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Apr 2019
Category Administration com_categories
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Apr 2019

@peteruoi @AlexRed can you please test?

avatar brianteeman
brianteeman - comment - 26 Apr 2019

Does this not have to be done everywhere there is function batchCopy

avatar alikon
alikon - comment - 26 Apr 2019

yes, true, just let see if this is considered a bug fix or a new feature before
and then we can do other's pr for article etc....

avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Apr 2019
Title
[com_categories] batch copy not copy permission
com_categories: batch copy not copy permission
avatar franz-wohlkoenig franz-wohlkoenig - edited - 27 Apr 2019
avatar infograf768
infograf768 - comment - 27 Apr 2019

I have tested this item successfully on 3947e0e

++


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

avatar infograf768 infograf768 - test_item - 27 Apr 2019 - Tested successfully
avatar infograf768
infograf768 - comment - 27 Apr 2019

Imho, looks rather as a bug fix, not a new feature.
Why copy a category instead of creating a new one if the permissions are not also copied?

avatar richard67
richard67 - comment - 27 Apr 2019

@infograf768 Well, you still can use copy because being too lazy to type again other stuff like title or desciption, which may be the same for some sub-categories below different parent categories.

So I am not sure if this PR has to be considered as bug fix or as a new feature.

I would vote for bug fix, too, but I think release leaders should decide.

=> Ping @HLeithner for 3.9 and @wilsonge for 4.0.

(Meanwhile I am preparing myself for testing.)

avatar infograf768
infograf768 - comment - 27 Apr 2019

@alikon
we do have a Notice though:

[27-Apr-2019 11:40:38 Europe/Berlin] PHP Notice: Trying to get property of non-object in ~/libraries/src/UCM/UCMType.php on line 169

EDIT

The Notice is also present here before this PR

avatar alikon
alikon - comment - 27 Apr 2019

@infograf768 unable to reproduce the notice
btw i've made #24736 for copying items to another category

avatar infograf768
infograf768 - comment - 27 Apr 2019

hmm... Maybe the Notice is specific to a multilingual site?
That test site is regularly updated here, so it may be another aspect

avatar richard67
richard67 - comment - 27 Apr 2019

I have tested this item successfully on 3947e0e


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

avatar richard67 richard67 - test_item - 27 Apr 2019 - Tested successfully
avatar richard67
richard67 - comment - 27 Apr 2019

@infograf768 I was also not able to reproduce the notice. Tested on monolingual fresh install with testing sample data.

avatar infograf768
infograf768 - comment - 27 Apr 2019

Ok, found the issue. I had in the content_types table a remaining of a 3rd party extension (Breezing forms) which had been deleted for long from the site but left a row in the table...

avatar infograf768 infograf768 - change - 27 Apr 2019
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 27 Apr 2019

RTC


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

avatar infograf768 infograf768 - change - 4 May 2019
Labels Added: ?
avatar SniperSister SniperSister - change - 8 May 2019
Labels Added: ?
avatar richard67
richard67 - comment - 18 May 2019

@franz-wohlkoenig Any reason why this is not merged? Has 2 good tests, has RTC. Only thing is it needs a "rebase" (i.e. merge from staging).

avatar infograf768
infograf768 - comment - 18 May 2019

Rebased.
@HLeithner to decide merging or not.

avatar HLeithner HLeithner - change - 18 May 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-05-18 12:25:15
Closed_By HLeithner
avatar HLeithner
HLeithner - comment - 18 May 2019

thx

avatar HLeithner HLeithner - close - 18 May 2019
avatar HLeithner HLeithner - merge - 18 May 2019

Add a Comment

Login with GitHub to post a comment