Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Globalcheckin task plugin error #44727 #44762

Open
wants to merge 1 commit into
base: 5.2-dev
Choose a base branch
from

Conversation

ghicar
Copy link

@ghicar ghicar commented Jan 21, 2025

This edit, allows the globalcheckin plugin task to work with 3rd party plugins that use "NOT NULL" in the checkout_out column.

The previous code only half catered for this case and resulted in -2 error code when run.

Note the behaviour of the scheduled globalcheckin task is inconsistent with a global checkin done from the admin control panel which works ok with "nut null".

See #44727

Pull Request for Issue # .

Summary of Changes

This edit, allows the globalcheckin plugin task to work with 3rd party plugins that use "NOT NULL" in the checkout_out column.
The previous code only half catered for this case and resulted in -2 error code when run.
Note the behaviour of the scheduled globalcheckin task is inconsistent with a global checkin done from the admin control panel which works ok with "nut null".

See #44727

Testing Instructions

Have a prefixed table with the checked_out column with NULL not allowed.
Have the globalcheckin task enabled and running on a schedule
Do some backend admin to checkout an item from this table and leave it checked out for long enough for globalcheckin to be triggered on it.

Actual result BEFORE applying this Pull Request

The task returns error code -2, resulting in task failure email if configured to send emails on failure.
The item remains checked out

Expected result AFTER applying this Pull Request

The "item" is checked in by the scheduled task.

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed

This edit, allows the globalcheckin plugin task to work with 3rd party plugins that use "NOT NULL" in the checkout_out column.

The previous code only half catered for this case and resulted in -2 error code when run.

Note the behaviour of the scheduled globalcheckin task is inconsistent with a global checkin done from the admin control panel which works ok with "nut null".

See joomla#44727
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants