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

Single- / Multirelation not working when created "on-the-fly"

    Details

      Description

      Steps to reproduce:
      After customer request I reproduced it in studio demo site.
      I only had an older (1.7.2) studio demo, so I updated it to the current version.
      steps to reproduce are based on studio demo, however they should apply to platform demo in an similar way.

      1. Extend Contenttype "Blog post" with a single relation and a multi relation field.
      2. Create or edit an existing Blog post
      3. Make an embed into the richtext field, go to the create tab, select "Blog Post"
      4. Try to use one of the relation fields

      Nothing happens, no JS Error no UDW :/

        Activity

        Hide
        Jacek Foremski (Inactive) added a comment - - edited

        This is actually a known limitation and it is documented here: https://doc.ez.no/display/USER/3.+Creating+content%2C+basic "Note that it's impossible to link to a different Content item (e.g. create a relation or embed an image) if you created your content directly in the Create tab in the Content browser".

        I have tested it on eZ Platform 1.7.5 and 1.11.0.1 using the default Article Content Type and there weren't any JS errors in the browser console. Nothing happens when trying to open another UDW.

        Taking this into the account I'm changing the type of this issue to "Improvement".

        Show
        Jacek Foremski (Inactive) added a comment - - edited This is actually a known limitation and it is documented here: https://doc.ez.no/display/USER/3.+Creating+content%2C+basic "Note that it's impossible to link to a different Content item (e.g. create a relation or embed an image) if you created your content directly in the Create tab in the Content browser". I have tested it on eZ Platform 1.7.5 and 1.11.0.1 using the default Article Content Type and there weren't any JS errors in the browser console. Nothing happens when trying to open another UDW. Taking this into the account I'm changing the type of this issue to "Improvement".
        Hide
        David Wulf added a comment - - edited

        Could I have some feedback on the status of this ticket? Many thanks!

        Show
        David Wulf added a comment - - edited Could I have some feedback on the status of this ticket? Many thanks!
        Hide
        Bertrand Dunogier added a comment -

        I have just tested that on eZ Platform 1.9.0-rc1, and could reproduce it as described. On the clean ezplatform installation, the default article content type is enough to reproduce it.

        1. Create a first Article, change the title to "Test" (ensures that you know which content you are editing)
        2. In the image field, click select content, go to the create tab, select article, locate it under eZ Platform, create
        3. Change the title to "Test from inside UDW"
        4. In the image field, click select content. Nothing happens, and a javascript error is logged.

        Uncaught TypeError: Cannot read property 'startingLocationId' of undefined
            at n._load (_ezcombo?/bundles/ezplatformui/js/views/ez-usermenuview.js&/tpl/handlebars/userprofileview-ez-templ…:1340)
            at n.load (_ezcombo?base-pluginhost/base-pluginhost-min.js&/bundles/ezplatformui/js/views/services/ez-viewserv…:72)
            at n._showSideView (_ezcombo?/bundles/ezplatformui/js/apps/plugins/ez-contentpeekplugin.js&/bundles/ezplatformui/js/app…:1437)
            at n.showSideView (_ezcombo?/bundles/ezplatformui/js/apps/plugins/ez-contentpeekplugin.js&/bundles/ezplatformui/js/app…:1369)
            at n.<anonymous> (_ezcombo?/bundles/ezplatformui/js/views/services/ez-confirmboxviewservice.js&/tpl/handlebars/confir…:1573)
            at e.Subscriber._notify (_ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:17)
            at e.Subscriber.notify (_ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:17)
            at e.CustomEvent._notify (_ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:16)
            at e.CustomEvent._procSubs (_ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:16)
            at e.CustomEvent.u.fireComplex (_ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:26)
        

        Show
        Bertrand Dunogier added a comment - I have just tested that on eZ Platform 1.9.0-rc1, and could reproduce it as described. On the clean ezplatform installation, the default article content type is enough to reproduce it. 1. Create a first Article, change the title to "Test" (ensures that you know which content you are editing) 2. In the image field, click select content, go to the create tab, select article, locate it under eZ Platform, create 3. Change the title to "Test from inside UDW" 4. In the image field, click select content. Nothing happens, and a javascript error is logged. Uncaught TypeError: Cannot read property 'startingLocationId' of undefined at n._load (_ezcombo?/bundles/ezplatformui/js/views/ez-usermenuview.js&/tpl/handlebars/userprofileview-ez-templ…:1340) at n.load (_ezcombo?base-pluginhost/base-pluginhost-min.js&/bundles/ezplatformui/js/views/services/ez-viewserv…:72) at n._showSideView (_ezcombo?/bundles/ezplatformui/js/apps/plugins/ez-contentpeekplugin.js&/bundles/ezplatformui/js/app…:1437) at n.showSideView (_ezcombo?/bundles/ezplatformui/js/apps/plugins/ez-contentpeekplugin.js&/bundles/ezplatformui/js/app…:1369) at n.<anonymous> (_ezcombo?/bundles/ezplatformui/js/views/services/ez-confirmboxviewservice.js&/tpl/handlebars/confir…:1573) at e.Subscriber._notify (_ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:17) at e.Subscriber.notify (_ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:17) at e.CustomEvent._notify (_ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:16) at e.CustomEvent._procSubs (_ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:16) at e.CustomEvent.u.fireComplex (_ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:26)
        Hide
        Nico Schnell added a comment -

        Reproduced in brand new platform clean installation extending the article content type

        Show
        Nico Schnell added a comment - Reproduced in brand new platform clean installation extending the article content type

          People

          • Assignee:
            Unassigned
            Reporter:
            Nico Schnell
          • Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated: