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

Error to preview / publish content item with empty Image Asset field

    Details

      Description

      Steps to reproduce:

      1. Create a new content type with two fields: Text Line (not required); Image Asset (not required);
      2. Create a new content item with a new content type. Specify the name and do not upload or select image;
      3. Click on preview and then click back.

      Actual result: Preview is empty. When going back there is an error message.
      Expected result: there is a preview. There is no error message.

      Error message text:

      Type error: Argument 1 passed to eZ\Publish\Core\MVC\Symfony\FieldType\ImageAsset\ParameterProvider::loadContentInfo() must be of the type integer, null given, called in /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/FieldType/ImageAsset/ParameterProvider.php on line 45 [in vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/FieldType/ImageAsset/ParameterProvider.php:69]
      

        Activity

        Hide
        Adam Wójs added a comment - - edited
        Show
        Adam Wójs added a comment - - edited PR: https://github.com/ezsystems/ezpublish-kernel/pull/2556
        Show
        Maciej Tyrała added a comment - merged: https://github.com/ezsystems/ezpublish-kernel/commit/084064d2abbf23954d612ba8c1fb2826b54d0dff

          People

          • Assignee:
            Unassigned
            Reporter:
            Nikita Skitev
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: