Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-7207

The route "ezplatform.content.draft.create" causes an error

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Customer request, 4.6.0, 3.3.37
    • 3.3.36, 4.5.4
    • None
    • None
    • Yes

    Description

      Steps to reproduce

      1. Install Ibexa DXP v3.3 or v4.5
      2. login as admin in front
      3. Add a new code block to the landing page and put the below code:
      <a
      
        href="{{ path('ezplatform.content.draft.create', {
      
         'contentId': 52,
      
         'fromVersionNo': 2,
      
         'fromLanguage': 'eng-GB',
      
         'toLanguage': 'eng-GB'
      
        }) }}"
      
        class="btn btn-icon mx-2"
      
        title="{{ 'dashboard.table.draft.edit'|trans|desc('Edit draft') }}"
      
      > Create a content by Ibexa  Draft</a> 

      or use this URL: "/content/create/draft/52/2/eng-GB?toLanguage=eng-GB"

      1. Fill out the form and send it

       

      Result

      we got error

      Ibexa\Core\Repository\SiteAccessAware\ContentService::loadContentInfo(): Argument #1 ($contentId) must be of type int, string given, called in /var/www/html/vendor/ibexa/content-forms/src/lib/Form/Processor/ContentFormProcessor.php on line 210 

      Expected result

      ability to edit the landing page correctly

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              mateusz.debinski@ibexa.co Mateusz Dębiński
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: