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

Allow a default option to be selected for configurable options

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: Sponsored, 4.6.0-b1
    • Component/s: Staff Interface
    • Labels:
      None

      Description

      1. Update adding/editing package options:
      2. Add a Default column at the end of the table for every type
        • Quantity: Text input to set an integer value that is validated to be between min/max at the appropriate step
        • Checkbox: Checkbox to set whether the checkbox field is checked by default
        • Radio: Radio to set which radio option is selected by default
        • Select: Radio to set which drop-down option is selected by default
        • Text/Textarea/Password will not support a default value at this time

      In the backend, a new `default` field (after `value`) would be added to `package_option_values`, default NULL 0, int(10), denoting whether this record is the default value (0 or 1). In the case of quantity values, the default would be the actual quantity value (e.g. 25)


      When creating or editing configurable options, add a radio field at the beginning of each option fields of the type dropdown and radio that allow the item to be selected by default.

      Currently the default option becomes the first option, but this isn't always ideal.

        Issue Links

          Activity

          admin Paul Phillips created issue -
          admin Paul Phillips made changes -
          Field Original Value New Value
          Attachment capture-for-jira-screenshot-20151109-143915-112.png [ 11400 ]
          Hide
          tyson Tyson Phillips (Inactive) added a comment -

          Why is this limited to Drop-down and Radio options? Quantity and checkbox options can also be supported by allowing for a set of default values to be set. Checkbox options could have multiple values set while all the others would only allow for one default value to be set.

          Show
          tyson Tyson Phillips (Inactive) added a comment - Why is this limited to Drop-down and Radio options? Quantity and checkbox options can also be supported by allowing for a set of default values to be set. Checkbox options could have multiple values set while all the others would only allow for one default value to be set.
          Hide
          admin Paul Phillips added a comment -

          That's a good point.

          Checkbox and Quantity have only a single option.

          What if for Checkbox we add another column to the end of the option, after Name and Value, called "Default" which contains a checkbox. If it's checked, then the checkbox will be checked by default. If not, then it won't.

          For quantity, we have Name, Min, Max, and Step. To the right of Step would could have a field called "Default" similar to Checkbox where the default value could be entered in a text input field similar to the other fields.

          Show
          admin Paul Phillips added a comment - That's a good point. Checkbox and Quantity have only a single option. What if for Checkbox we add another column to the end of the option, after Name and Value, called "Default" which contains a checkbox. If it's checked, then the checkbox will be checked by default. If not, then it won't. For quantity, we have Name, Min, Max, and Step. To the right of Step would could have a field called "Default" similar to Checkbox where the default value could be entered in a text input field similar to the other fields.
          Hide
          tyson Tyson Phillips (Inactive) added a comment -

          Why not add a _Default _ column at the end of the table for every type?

          • Quantity: Text input to set an integer value that is validated to be between min/max
          • Checkbox: Checkbox to set whether the checkbox field is checked by default
          • Radio: Radio to set which radio option is selected by default
          • Select: Radio to set which drop-down option is selected by default

          In the backend, a new field would be added to `package_option_values`, default NULL, int(10), denoting whether this record is the default value. In the case of quantity values, the default would be the actual quantity value

          Show
          tyson Tyson Phillips (Inactive) added a comment - Why not add a _Default _ column at the end of the table for every type? Quantity: Text input to set an integer value that is validated to be between min/max Checkbox: Checkbox to set whether the checkbox field is checked by default Radio: Radio to set which radio option is selected by default Select: Radio to set which drop-down option is selected by default In the backend, a new field would be added to `package_option_values`, default NULL, int(10), denoting whether this record is the default value. In the case of quantity values, the default would be the actual quantity value
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked lower
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked lower
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked lower
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked lower
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked lower
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked higher
          tyson Tyson Phillips (Inactive) made changes -
          Fix Version/s Sponsored [ 11113 ]
          tyson Tyson Phillips (Inactive) made changes -
          Link This issue is duplicated by CORE-2968 [ CORE-2968 ]
          tyson Tyson Phillips (Inactive) made changes -
          Story Points 5
          tyson Tyson Phillips (Inactive) made changes -
          Fix Version/s 4.6.0-b1 [ 11117 ]
          Fix Version/s Short Term [ 10800 ]
          tyson Tyson Phillips (Inactive) made changes -
          Sprint 4.6.0 Sprint 4 [ 80 ]
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked higher
          tyson Tyson Phillips (Inactive) made changes -
          Description When creating or editing configurable options, add a radio field at the beginning of each option fields of the type dropdown and radio that allow the item to be selected by default.

          Currently the default option becomes the first option, but this isn't always ideal.

          # Update adding/editing package options:
          # Add a _Default _ column at the end of the table for every type
          #* Quantity: Text input to set an integer value that is validated to be between min/max
          #* Checkbox: Checkbox to set whether the checkbox field is checked by default
          #* Radio: Radio to set which radio option is selected by default
          #* Select: Radio to set which drop-down option is selected by default

          In the backend, a new `default` field (after `value`) would be added to `package_option_values`, default NULL, int(10), denoting whether this record is the default value (0 or 1). In the case of quantity values, the default would be the actual quantity value (e.g. 25)


          ----

          When creating or editing configurable options, add a radio field at the beginning of each option fields of the type dropdown and radio that allow the item to be selected by default.

          Currently the default option becomes the first option, but this isn't always ideal.
          tyson Tyson Phillips (Inactive) made changes -
          Sprint 4.6.0 Sprint 4 [ 80 ] 4.6.0 Sprint 4, 4.6.0 Sprint 5 [ 80, 83 ]
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked higher
          tyson Tyson Phillips (Inactive) made changes -
          Link This issue is blocked by CORE-1832 [ CORE-1832 ]
          tyson Tyson Phillips (Inactive) made changes -
          Description
          # Update adding/editing package options:
          # Add a _Default _ column at the end of the table for every type
          #* Quantity: Text input to set an integer value that is validated to be between min/max
          #* Checkbox: Checkbox to set whether the checkbox field is checked by default
          #* Radio: Radio to set which radio option is selected by default
          #* Select: Radio to set which drop-down option is selected by default

          In the backend, a new `default` field (after `value`) would be added to `package_option_values`, default NULL, int(10), denoting whether this record is the default value (0 or 1). In the case of quantity values, the default would be the actual quantity value (e.g. 25)


          ----

          When creating or editing configurable options, add a radio field at the beginning of each option fields of the type dropdown and radio that allow the item to be selected by default.

          Currently the default option becomes the first option, but this isn't always ideal.

          # Update adding/editing package options:
          # Add a _Default_ column at the end of the table for every type
          #* Quantity: Text input to set an integer value that is validated to be between min/max
          #* Checkbox: Checkbox to set whether the checkbox field is checked by default
          #* Radio: Radio to set which radio option is selected by default
          #* Select: Radio to set which drop-down option is selected by default

          In the backend, a new `default` field (after `value`) would be added to `package_option_values`, default NULL, int(10), denoting whether this record is the default value (0 or 1). In the case of quantity values, the default would be the actual quantity value (e.g. 25)


          ----

          When creating or editing configurable options, add a radio field at the beginning of each option fields of the type dropdown and radio that allow the item to be selected by default.

          Currently the default option becomes the first option, but this isn't always ideal.
          tyson Tyson Phillips (Inactive) made changes -
          Assignee Tyson Phillips [ tyson ]
          tyson Tyson Phillips (Inactive) made changes -
          Description
          # Update adding/editing package options:
          # Add a _Default_ column at the end of the table for every type
          #* Quantity: Text input to set an integer value that is validated to be between min/max
          #* Checkbox: Checkbox to set whether the checkbox field is checked by default
          #* Radio: Radio to set which radio option is selected by default
          #* Select: Radio to set which drop-down option is selected by default

          In the backend, a new `default` field (after `value`) would be added to `package_option_values`, default NULL, int(10), denoting whether this record is the default value (0 or 1). In the case of quantity values, the default would be the actual quantity value (e.g. 25)


          ----

          When creating or editing configurable options, add a radio field at the beginning of each option fields of the type dropdown and radio that allow the item to be selected by default.

          Currently the default option becomes the first option, but this isn't always ideal.
          # Update adding/editing package options:
          # Add a _Default_ column at the end of the table for every type
          #* Quantity: Text input to set an integer value that is validated to be between min/max at the appropriate step
          #* Checkbox: Checkbox to set whether the checkbox field is checked by default
          #* Radio: Radio to set which radio option is selected by default
          #* Select: Radio to set which drop-down option is selected by default

          In the backend, a new `default` field (after `value`) would be added to `package_option_values`, default NULL, int(10), denoting whether this record is the default value (0 or 1). In the case of quantity values, the default would be the actual quantity value (e.g. 25)


          ----

          When creating or editing configurable options, add a radio field at the beginning of each option fields of the type dropdown and radio that allow the item to be selected by default.

          Currently the default option becomes the first option, but this isn't always ideal.
          Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
          Status Open [ 1 ] In Progress [ 3 ]
          tyson Tyson Phillips (Inactive) made changes -
          Description # Update adding/editing package options:
          # Add a _Default_ column at the end of the table for every type
          #* Quantity: Text input to set an integer value that is validated to be between min/max at the appropriate step
          #* Checkbox: Checkbox to set whether the checkbox field is checked by default
          #* Radio: Radio to set which radio option is selected by default
          #* Select: Radio to set which drop-down option is selected by default

          In the backend, a new `default` field (after `value`) would be added to `package_option_values`, default NULL, int(10), denoting whether this record is the default value (0 or 1). In the case of quantity values, the default would be the actual quantity value (e.g. 25)


          ----

          When creating or editing configurable options, add a radio field at the beginning of each option fields of the type dropdown and radio that allow the item to be selected by default.

          Currently the default option becomes the first option, but this isn't always ideal.
          # Update adding/editing package options:
          # Add a _Default_ column at the end of the table for every type
          #* Quantity: Text input to set an integer value that is validated to be between min/max at the appropriate step
          #* Checkbox: Checkbox to set whether the checkbox field is checked by default
          #* Radio: Radio to set which radio option is selected by default
          #* Select: Radio to set which drop-down option is selected by default
          #* Text/Textarea/Password will not support a default value at this time

          In the backend, a new `default` field (after `value`) would be added to `package_option_values`, default NULL, int(10), denoting whether this record is the default value (0 or 1). In the case of quantity values, the default would be the actual quantity value (e.g. 25)


          ----

          When creating or editing configurable options, add a radio field at the beginning of each option fields of the type dropdown and radio that allow the item to be selected by default.

          Currently the default option becomes the first option, but this isn't always ideal.
          tyson Tyson Phillips (Inactive) made changes -
          Description # Update adding/editing package options:
          # Add a _Default_ column at the end of the table for every type
          #* Quantity: Text input to set an integer value that is validated to be between min/max at the appropriate step
          #* Checkbox: Checkbox to set whether the checkbox field is checked by default
          #* Radio: Radio to set which radio option is selected by default
          #* Select: Radio to set which drop-down option is selected by default
          #* Text/Textarea/Password will not support a default value at this time

          In the backend, a new `default` field (after `value`) would be added to `package_option_values`, default NULL, int(10), denoting whether this record is the default value (0 or 1). In the case of quantity values, the default would be the actual quantity value (e.g. 25)


          ----

          When creating or editing configurable options, add a radio field at the beginning of each option fields of the type dropdown and radio that allow the item to be selected by default.

          Currently the default option becomes the first option, but this isn't always ideal.
          # Update adding/editing package options:
          # Add a _Default_ column at the end of the table for every type
          #* Quantity: Text input to set an integer value that is validated to be between min/max at the appropriate step
          #* Checkbox: Checkbox to set whether the checkbox field is checked by default
          #* Radio: Radio to set which radio option is selected by default
          #* Select: Radio to set which drop-down option is selected by default
          #* Text/Textarea/Password will not support a default value at this time

          In the backend, a new `default` field (after `value`) would be added to `package_option_values`, default -NULL- 0, int(10), denoting whether this record is the default value (0 or 1). In the case of quantity values, the default would be the actual quantity value (e.g. 25)


          ----

          When creating or editing configurable options, add a radio field at the beginning of each option fields of the type dropdown and radio that allow the item to be selected by default.

          Currently the default option becomes the first option, but this isn't always ideal.
          tyson Tyson Phillips (Inactive) made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 4 hours, 15 minutes [ 15300 ]
          Worklog Id 12097 [ 12097 ]
          Automated transition triggered when Tyson Phillips (Inactive) created pull request #637 in Stash -
          Status In Progress [ 3 ] In Review [ 5 ]
          Resolution Fixed [ 1 ]
          tyson Tyson Phillips (Inactive) made changes -
          Link This issue blocks CORE-3089 [ CORE-3089 ]
          tyson Tyson Phillips (Inactive) made changes -
          Time Spent 4 hours, 15 minutes [ 15300 ] 1 day, 1 hour, 5 minutes [ 32700 ]
          Worklog Id 12099 [ 12099 ]
          jonathan Jonathan Reissmueller made changes -
          Time Spent 1 day, 1 hour, 5 minutes [ 32700 ] 1 day, 2 hours, 8 minutes [ 36480 ]
          Worklog Id 12105 [ 12105 ]
          Automated transition triggered when Tyson Phillips (Inactive) merged pull request #637 in Stash -
          Status In Review [ 5 ] Closed [ 6 ]
          tyson Tyson Phillips (Inactive) made changes -
          Link This issue relates to CORE-1082 [ CORE-1082 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                28/May/19

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 8 minutes
                1d 2h 8m

                  Agile