Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-16964

Default value for multioption should be none

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.4.0alpha3
    • Fix Version/s: 4.4.0alpha5
    • Component/s: Legacy > Webshop
    • Labels:
      None

      Description

      You have to remove the current empty option in any product before publishing manually. If not you will see an empty dropdown for product options. Most products generally do not have options and we should not require this manual step.

      Should probably do the same in multoption 2 as well.

      Steps to reproduce
      Index: kernel/classes/datatypes/ezmultioption/ezmultioption.php
      ===================================================================
      --- kernel/classes/datatypes/ezmultioption/ezmultioption.php	(revision 21405)
      +++ kernel/classes/datatypes/ezmultioption/ezmultioption.php	(working copy)
      @@ -344,12 +344,6 @@
      }
      }
      }
      - else
      - {
      - //The control come here while creaging new object for MultiOption
      - $nodeID = $this->addMultiOption( "", 0, false );
      - $this->addOption( $nodeID, "", "", "" );
      - }
      }
      
      /*!
      

        Attachments

          Activity

            People

            Assignee:
            andre1 André R
            Reporter:
            andre1 André R
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: