? ? Pending

User tests: Successful: Unsuccessful:

avatar rdeutz
rdeutz
25 Jan 2017

Summary of Changes

This PR moves the check if an item is checked out to the helper function and used this function when creating links to items

Testing Instructions

  • install latest staging with 2 or more languages
  • create a 2nd user
  • open 2 browsers and log in with both users
  • browser A: open Multilingual Associations extension
  • browser A: chose article and a language
  • browser B: open an article (edit)

You will see that you can access an checked out article, this end with an error message but that's not nice.

Apply the patch

Now you can see that articles have the locked sign and also the associated items don't have a link to open it.

avatar rdeutz rdeutz - open - 25 Jan 2017
avatar rdeutz rdeutz - change - 25 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Jan 2017
Category Administration
avatar alikon
alikon - comment - 26 Jan 2017

multipr

i've logged in in browser A with admin1
i've logged in in browser B with admin2

after applying the patch on browser B i see the locked icon on article IT and it associated article GB
but both have a link to open is this wanted behaviuor ?

avatar rdeutz
rdeutz - comment - 26 Jan 2017

I didn't changed the article view I only worked on the associations view. Seems to me that is as it was before

avatar alikon
alikon - comment - 26 Jan 2017

sorry i was confused by

items don't have a link to open it.

avatar alikon
alikon - comment - 26 Jan 2017

I have tested this item successfully on 6e67ba1


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

avatar alikon alikon - test_item - 26 Jan 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 27 Jan 2017

Not sure it works as should. Maybe need clearer test instructions.

User2 using BrowserB is a manager with access to com_associations.
After patch, here is the page in browser B showing the article which is checked out by another user in browserA.
It does show the lock (greyed as Manager has no com_checkin permission) but the article is still clickable.

screen shot 2017-01-27 at 10 11 48

Now I click on the article title and I get this.

associationscheckedout3

As you can see, not only I can click on an item which is locked, but also I get weird results in the side by side and when closing and although the user/manager has no com_checkin permissions, the article is unlocked and the associated article (FR in this case) is locked.

avatar infograf768
infograf768 - comment - 27 Jan 2017

I have tested this item ? unsuccessfully on 6e67ba1


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

avatar infograf768 infograf768 - test_item - 27 Jan 2017 - Tested unsuccessfully
avatar rdeutz
rdeutz - comment - 27 Jan 2017

Ok got it. This here moved the check if something is checked out to a helper function.

The question at hand is, what is the right behaviour?

a) If we say the article at the left is something like the source than it doesn't makes any sense to edit this or on the associated articles (because some is changing the source).

b) If this can be source or target than it is much more complicated.

What we can do is to disable the link on the article in the associations view, when the article is checked out

avatar rdeutz rdeutz - change - 27 Jan 2017
Labels Added: ?
avatar rdeutz
rdeutz - comment - 27 Jan 2017

I made a fix following the a) behaviour

avatar infograf768
infograf768 - comment - 27 Jan 2017

OK now: a locked item as well as its associations button (when present) do not open the side by side.

There are other issues to solve but I can mark this as tested OK for what it already does.

avatar infograf768
infograf768 - comment - 27 Jan 2017

I have tested this item successfully on 14c6fcb


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

avatar infograf768 infograf768 - test_item - 27 Jan 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 27 Jan 2017

@alikon
Please retest this to move on.

avatar alikon
alikon - comment - 27 Jan 2017

hope i've not missed some test case this turn ;)

avatar alikon
alikon - comment - 27 Jan 2017

I have tested this item successfully on 14c6fcb


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

avatar alikon alikon - test_item - 27 Jan 2017 - Tested successfully
avatar rdeutz rdeutz - change - 27 Jan 2017
Status Pending Ready to Commit
avatar rdeutz
rdeutz - comment - 27 Jan 2017

so we can set RTC


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

avatar jeckodevelopment jeckodevelopment - change - 27 Jan 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-01-27 19:56:17
Closed_By jeckodevelopment
Labels Added: ?
avatar jeckodevelopment jeckodevelopment - close - 27 Jan 2017
avatar jeckodevelopment jeckodevelopment - merge - 27 Jan 2017

Add a Comment

Login with GitHub to post a comment