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

Search model for "insert last publication" feature must force the live workspace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0.0
    • None
    • None
    • None

      In was done in the generator in 3.8

              // Force live workspace
              public void generate() throws IOException, SAXException, ProcessingException
              {
                  Request request = ObjectModelHelper.getRequest(objectModel);
                  String workspaceName = RequestAttributeWorkspaceSelector.getForcedWorkspace(request);
                  
                  // Force workspace live for search
                  RequestAttributeWorkspaceSelector.setForcedWorkspace(request, WebConstants.LIVE_WORKSPACE);
                  super.generate();
                  RequestAttributeWorkspaceSelector.setForcedWorkspace(request, workspaceName);
              }
      

            ngavalda Nicolas Gavalda (Inactive)
            trizzi Thibaut Rizzi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: