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

daynight module REST API PUT fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: Call Flow Control
    • Labels:
    • ToDo:

      Description

      When running a PUT request for the daynight module, the response comes back asĀ 

      
      {
        "error": {
          "type": "Whoops\\Exception\\ErrorException",
          "message": "Class 'FreePBX\\modules\\Daynight\\Api\\Rest\\dayNightObject' not found",
          "file": "\/var\/www\/html\/admin\/modules\/daynight\/Api\/Rest\/Daynight.php",
          "line": 45
        }
      }
      

      due to the backslash character missing when calling

      
      new dayNightObject($args['id']);
      

      on line 45 of /Api/Rest/Daynight.php

      I created a pull request to fix it here: https://github.com/FreePBX/daynight/pull/2

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kinoroy Kino
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

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