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

fromString & ezinisettings

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.0.5, 4.1.2, 4.2.0alpha1
    • 4.0.1, 4.0.4, 4.1.1
    • Misc
    • None

    Description

      Hello,
      I think there is a mistake in the following code in the \kernel\classes\datatypes\ezinisetting\ezinisettingtype.php file

      function fromString( $contentObjectAttribute, $string )
          {
              if ( $string == '' )
                  return true;
              $iniData = explode( '|', $string );
      
              $contentObjectAttribute->setAttribute( 'data_text', $value );
              if ( isset ( $iniData[1] ) )
                  $contentObjectAttribute->setAttribute( 'data_int', $makeEmptyArray );
              return true;
          }
      

      it shouldn't be $value but $iniData[0], should it?

      -G

      Attachments

        Activity

          People

            andre1 andre1
            gouan gouan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: