Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-2134

Fix incorrect verification of the target platform when migrating section tab

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 20
    • Component/s: Studio Features

      Description

      In the DocumentFeatureBuilder, there is an error while verifying the current target platform, because the id is used instead of the version.

      final StudioTargetPlatformInstance targetPlatform = ctx.getProject().getTargetPlatform();
              if (targetPlatform.isAfterVersion(TARGET_PLATFORM.CAP_5_8.getId())) {
                  // BBB for NXS-1771: TAB_SECTION_CONTENT and TAB_CONTENT are now
                  // equivalent in 5.8
                  if (disabledViews.contains(DocumentFeature.SECTION_CONTENT_TAB_ID)) {
                      disabledViews.remove(DocumentFeature.SECTION_CONTENT_TAB_ID);
                      disabledViews.add(DocumentFeature.CONTENT_TAB_ID);
                  }
              }
      

      The verification is always "false" so the replacement is never done in the built contribution.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified