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

          tyson Tyson Phillips (Inactive) created issue -
          tyson Tyson Phillips (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          tyson Tyson Phillips (Inactive) made changes -
          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.

          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
          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 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
          tyson Tyson Phillips (Inactive) made changes -
          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 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
          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.
          tyson Tyson Phillips (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          tyson Tyson Phillips (Inactive) made changes -
          Link This issue relates to CORE-1528 [ CORE-1528 ]

            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