Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-22964

Backup : "Delete after Runs" bug

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 15.0.17.52
    • Fix Version/s: None
    • Component/s: Backup & Restore
    • Labels:
      None
    • ToDo:
    • Asterisk Version:
      16.8
    • Distro Version:
      Debian GNU/Linux 10 (buster)
    • Distro:
      Self Install Debian

      Description

      For some backups, the "delete after runs" deletes the most recent backup instead of the oldest.

      There is a problem with the sorting method used in "Handlers/Backup/Maintenance.php" at lines 77 and 154 : it is using asort(..) when it should be arsort(...) and SORT_NUMERIC when it should either be using SORT_STRING or SORT_NATURAL.

      SORT_NUMERIC works for number not strings.

      Joined a script with two exemples.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  jbaron jbaron
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    NextupJiraPlusStatus

                    Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.