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

Fatal error when saving empty qty config option default

    Details

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

      Description

      When the default value is empty in a quantity config option users may receive an error:

      SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'default' at row 1 on line 196 in path_to_blesta\vendors\minphp\db\src\PdoConnection.php

      To recreate:

      • Start adding a config option
      • Change type to quantity
      • Fill in all fields but make the default field empty
      • Attempt to receive error

        Activity

        jonathan Jonathan Reissmueller created issue -
        Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 4.8.0 Sprint 1 [ 92 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        Automated transition triggered when Jonathan Reissmueller created pull request #740 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        Automated transition triggered when Tyson Phillips (Inactive) merged pull request #740 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Sep/19

              Agile