Uploaded image for project: 'Jahia Community'
  1. Jahia Community
  2. JAHIA-4253

Impossible to edit some containers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • xCM 6.0
    • xCM 6.0
    • None

    Description

      60 r24927

      I get the attached ClassCastException when I try to edit a box.
      It seems to be a consequence of commit 24923 (JahiaContainerStructure.getObjectDef() cast as JahiaFieldDefinition):

      private static boolean hasPageField(JahiaContainer container) throws JahiaException {
      for (Iterator<JahiaContainerStructure> structureIterator = container.getDefinition().getStructure(); structureIterator.hasNext() {
      JahiaContainerStructure field = (JahiaContainerStructure) ((Iterator) structureIterator).next();
      JahiaFieldDefinition fieldDefinition = (JahiaFieldDefinition) field.getObjectDef();
      if (fieldDefinition.getType() == FieldTypes.PAGE)

      { return true; }

      }
      return false;
      }

      TestRail: Results

        Attachments

          Activity

            People

              cedmail_old Cédric Mailleux (Inactive)
              dsaulnier_old Damien Saulnier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases

                    Packages

                      Version Package
                      xCM 6.0