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

Problem with generated object naming on Oracle

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.0.4, 4.1.0
    • 4.0.3
    • Misc
    • None

    Description

      When editing an article (shortname|title name pattern) without filling out the shortname will result in a object without a name.

      Reason:
      eznamepatternresolver.php::resolveToken

      if ( array_key_exists( $tokenPart, $this->attributeArray ) and $this->attributeArray[$tokenPart] !== "" )

      $this->attributeArray[$tokenPart] is '' on mysql
      $this->attributeArray[$tokenPart] is NULL on oracle

      As conqeuence, this if evaluates true on oracle.

      Suggested change:
      if ( array_key_exists( $tokenPart, $this->attributeArray ) and ( $this->attributeArray[$tokenPart] !== "" and $this->attributeArray[$tokenPart] !== NULL ) )

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: