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

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        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:


        In such cases, the action should fail gracefully.
        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:

        {quote}
        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
        {quote}
        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.
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.4.0 Sprint 3 [ 59 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        Automated transition triggered when Tyson Phillips (Inactive) created pull request #526 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.4.0 Sprint 3 [ 59 ] 4.4.0 Sprint 3, 4.4.0 Sprint 4 [ 59, 71 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        Automated transition triggered when Tyson Phillips (Inactive) merged pull request #526 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          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