Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2809

Fetching service totals may fail due to error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      When invalid/inconsistent data is provided as input to fetch updated totals from the client UI (i.e. ClientServices::updateTotals) via AJAX, it's possible to encounter an error:

      Fatal Error (E_ERROR): Call to a member function totals() on boolean "code":1,"message":"Call to a member function totals() on boolean","file":"/home/xxxxx/public_html/app/controllers/client_services.php","line":1738

      See https://www.blesta.com/forums/index.php?/topic/11791-client_servicesphp-call-to-a-member-function-totals/

      In such cases, the action should fail gracefully.

        Activity

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              22/Oct/18

              Agile