Undefined index: sort in _ultimate_cron_multi_column_sort()

Created on 27 June 2017, almost 8 years ago
Updated 8 January 2025, 3 months ago

Method \ultimate_cron_job_ctools_export_ui::list_form_submit calling _ultimate_cron_multi_column_sort() funciton without 'sort' key in array $this->rows.
When open CRON Jobs showed notice and warnings:

Notice: Undefined index: sort in _ultimate_cron_multi_column_sort() (line 1705 of /path/to/project/sites/all/modules/ultimate_cron/ultimate_cron.module).
Warning: Invalid argument supplied for foreach() in _ultimate_cron_multi_column_sort() (line 1705 of /path/to/project/sites/all/modules/ultimate_cron/ultimate_cron.module).

For correction I use this code into _ultimate_cron_multi_column_sort() function:

if (!isset($a['sort']))
    return 0;

Patch in attachment

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇷🇺Russia Constantine Tkachenko

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇰Denmark arnested

    I'm closing this since Drupal 7 is now unsupported and there will be no more development on the Drupal 7 branch of Ultimate Cron either.

    Thank you for taking the time and effort in reporting this issue, even though it never got resolved.

Production build 0.71.5 2024