?
avatar smehrbrodt
smehrbrodt
7 Dec 2016

When editing an article, it gets the status "Checked out". That prevents any other user to edit the same article at the same time.
The status will be reset when closing the article.
However, when closing the window/tab with the edit form, the checked out status is not being reset.

This can lead to many checked out articles, and users not knowing what causes this.

Maybe we can add some warning message, or release the lock before closing the window.

avatar smehrbrodt smehrbrodt - open - 7 Dec 2016
avatar joomla-cms-bot joomla-cms-bot - change - 7 Dec 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Dec 2016
avatar brianteeman
brianteeman - comment - 7 Dec 2016

As far as I am aware it is not possible to prevent someone closing a
browser tab/window and force the display of a message. Even if it was I'm
not convinced it would be a good idea.

On 7 Dec 2016 5:28 p.m., "Samuel Mehrbrodt" notifications@github.com
wrote:

When editing an article, it gets the status "Checked out". That prevents
any other user to edit the same article at the same time.
The status will be reset when closing the article.
However, when closing the window/tab with the edit form, the checked out
status is not being reset.

This can lead to many checked out articles, and users not knowing what
causes this.

Maybe we can add some warning message, or release the lock before closing
the window.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#13120, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8e1osVza9FZbDxaDn0RzBslx5lWkks5rFuzJgaJpZM4LG3qu
.

avatar smehrbrodt
smehrbrodt - comment - 7 Dec 2016

As far as I am aware it is not possible to prevent someone closing a browser tab/window and force the display of a message.

It is possible: https://developer.mozilla.org/de/docs/Web/API/WindowEventHandlers/onbeforeunload

Even if it was I'm not convinced it would be a good idea.

As I said, it must not be that we display a warning message, a ping to the Joomla backend "please release this content" would be enough.

avatar PhilETaylor
PhilETaylor - comment - 7 Dec 2016

This feature is performing EXACTLY as it was developed to - there is no bug, if you check out an item then its checked out until you check it back in by closing the article or saving it.

If you close the browser then it quite rightly remains checked out. This is by design.

avatar brianteeman
brianteeman - comment - 7 Dec 2016

That link to mozilla.org shows that even if possible it is only supported by a small number of the browsers we use making it functionally useless.

I am closing this at this time as expected behaviour. It could be re-opened if you find a solution that will work with all supported browser.


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

avatar brianteeman brianteeman - close - 7 Dec 2016
avatar brianteeman brianteeman - change - 7 Dec 2016
Status New Expected Behaviour
Closed_Date 0000-00-00 00:00:00 2016-12-07 19:20:55
Closed_By brianteeman
avatar brianteeman brianteeman - close - 7 Dec 2016
avatar dgt41
dgt41 - comment - 7 Dec 2016

@smehrbrodt could you use #4773 as your base and provide a working solution?

avatar smehrbrodt
smehrbrodt - comment - 8 Dec 2016

That link to mozilla.org shows that even if possible it is only supported by a small number of the browsers we use making it functionally useless.

That page is called WebAPI - not Firefox API. It's just hosted by mozilla. And the page states that it works in all major browsers, even in IE since version 4.

If you close the browser then it quite rightly remains checked out. This is by design.

What benefit does one have by that "design" decision?

The problem is, that there is no easy way to just "view" an article in the backend - to do that, you need to go to the edit view. And if you just cared about viewing, you usually do not care to save or close the article using the Joomla buttons - but might just close the window/tab.

Maybe another possibility would be to take the lock only when starting to actually edit something? Or have the locks automatically been reset after a period of inactivity? Or something else?
There must be some solution for this.

avatar brianteeman
brianteeman - comment - 8 Dec 2016

Check the links at the bottom and it shows all the browsers it does not
work on including mobile

On 8 Dec 2016 10:13 a.m., "Samuel Mehrbrodt" notifications@github.com
wrote:

That link to mozilla.org shows that even if possible it is only supported
by a small number of the browsers we use making it functionally useless.

That page is called WebAPI - not Firefox API. It's just hosted by mozilla.
And the page states that it works in all major browsers, even in IE since
version 4.

If you close the browser then it quite rightly remains checked out. This
is by design.

What benefit does one have by that "design" decision?

The problem is, that there is no easy way to just "view" an article in the
backend - to do that, you need to go to the edit view. And if you just
cared about viewing, you usually do not care to save or close the article
using the Joomla buttons - but might just close the window/tab.

Maybe another possibility would be to take the lock only when starting to
actually edit something? Or have the locks automatically been reset after a
period of inactivity? Or something else?
There must be some solution for this.


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#13120 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8W18xVhnk7VewxdPGdkb0auuBz9cks5rF9hZgaJpZM4LG3qu
.

Add a Comment

Login with GitHub to post a comment