Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-79232

Checkbox for Contents in Staging of ADTs is disabled after Refresh Count

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.0.X, Master
    • Fix Version/s: None
    • Component/s: Staging
    • Labels:
    • Fix Priority:
      3

      Description

      Steps to reproduce:

      1. Logged in Liferay,
      2. Turn on Staging
      3. go to Site's Configuration > Application Display Template;
      4. Add any type of ADT;
      5. Click on Staging in ADT's home page;
      6. In Content fieldset, click on Refresh Count;

      Expected result:
      The checkbox of Contents should be able to be checked or unchecked as it was before the Refresh Count action.

      Actual result:
      The checkbox of Contents is unchecked and disabled. That way no ADT is exported when you try to continue the exportation.

      Remarks for the developer

      • The same fix is good for this which goes with LPS-78293, but in staging-processes-web.
      • Repeating code should be extracted into a function, see the pattern:
        var id = checkBox.prop('id');
        
        var controlCheckboxes = $('[data-root-control-id=' + id + ']');
        
        if (controlCheckboxes.length == 0) {
        	return;
        }
        
        controlCheckboxes.each(
        	function() {
        		var controlCheckbox = $(this);
        
        		if (!controlCheckbox.is(':checked')) {
        			controlCheckbox.trigger(STR_CLICK);
        		}
        	}
        );
        

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peter.borkuti Peter Borkuti (Inactive)
              Reporter:
              peter.borkuti Peter Borkuti (Inactive)
              Participants of an Issue:
              Recent user:
              Peter Borkuti (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 34 weeks, 6 days ago

                  Packages

                  Version Package