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

Packages::add without specifying pricing currencies may cause an Illegal Offset Type error

    Details

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

      Description

      Someone reported that calling Packages::add via the API without specifying a currency for pricing information led to an SQL error:
      SQLSTATE[21000]: Cardinality violation: 1241 Operand should contain 1 column(s)

      While unable to duplicate that error specifically, the cause appears to be related to currency rule validation. Attempting to add a package without specifying a currency for pricing leads to an Illegal Offset Type error when attempting to format prices into the non-given currency.

      When formatting a currency, the currency type should be checked. Likewise, the rules for adding/editing a package should be updated to require a currency to be set.

        Issue Links

          Activity

          There are no comments yet on this issue.

            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:
                16/Oct/14