Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7568

Error when creating a simple content with edition.select-content and allowCreation = true

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • 4.0M12
    • 4.0M8
    • None
    • None
    • v4

      We added in a content-type (agent)

      <widget>edition.select-content</widget>
                     <widget-params>
                         <cms:param name="allowCreation">true</cms:param>
                     </widget-params>
      

      to have

      <cms:metadata name="keyword" type="content" contentType="simple.Keyword"  multiple="true">
                 <label i18n="true">PLUGIN_ORGANISATION_CONTENT_AGENT_KEYWORD</label>
                 <description i18n="true">PLUGIN_ORGANISATION_CONTENT_AGENT_KEYWORD_DESC</description>          
                 <widget>edition.select-content</widget>
                     <widget-params>
                         <cms:param name="allowCreation">true</cms:param>
                     </widget-params>
             </cms:metadata>
      

      We got an error when we added the "keyword" during inline edition
      It probably tried to open the content but it is not possible, it is a "simple content"

      2016-08-12 12:06:15,616 ERROR [sitemap.handled-errors] (http-nio-8080-exec-10;/_wrapped-content.html) No pipeline matched request: _plugins/organisation/simple.Keyword.html
              at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:150:82
              at <map:serialize type="xhtml"> - resource://org/ametys/workspaces/web/sitemap.xmap:399:58
              at <map:transform type="minimizer-front"> - resource://org/ametys/workspaces/web/sitemap.xmap:398:124
              at <map:transform type="i18n"> - resource://org/ametys/workspaces/web/sitemap.xmap:395:56
              at <map:transform> - resource://org/ametys/workspaces/web/sitemap.xmap:388:61
              at <map:generate> - resource://org/ametys/workspaces/web/sitemap.xmap:387:105
              at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:181:109
      

            Unassigned Unassigned
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: