JoomGalleryfriends / JG4-dev

Development repository for JoomGallery v4.x
GNU General Public License v3.0
10 stars 6 forks source link

Checkout/Checkin functionality #59

Closed Elfangor93 closed 1 year ago

Elfangor93 commented 1 year ago

What is this pull request for

Adds the checkout and checkin functionality to image, category, config and tags manager as you know it from com_content. If a user is editing a record, the record gets a lock in the list view. This record is now locked for anybody else to edit until it is unlocked again.

How to test this pull request

AlexanderSupp commented 1 year ago

Very important for professional systems. But for an image gallery in Joomla? However, I will test it.

eumel1602 commented 1 year ago

I wanted to test it, every time I try to create an image or a category I get the following error:

"Save failed with the following error: Field 'checked_out_time' doesn't have a default value"

is it because of my installation or because of the JG4-PR Checkout/checkin???

MrMusic commented 1 year ago

"Save failed with the following error: Field 'checked_out_time' doesn't have a default value"

is it because of my installation or because of the JG4-PR Checkout/checkin???

Same problem with me. Error is with all tables: images, categories, tags, configs.

eumel1602 commented 1 year ago

(Now the installation seems to be ok.) I've tried the PR with many different tabs and settings. I also installed and tested the sample data from Mr Music. (50 to 100 tests) Except for very few cases, I was always able to see the lock I wanted or it was gone again at the right time. Very rarely it wasn't true, the post wasn't blocked, I could never reproduce it. From my point of view it does what it should in the 4 managers ... (WIN / J4.2.6/ PHP 7.4)

MrMusic commented 1 year ago

I have tested this item ✅ successfully. Thank you very much.