-
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
Steps to reproduce:
- Logged in Liferay,
- Turn on Staging
- go to Site's Configuration > Application Display Template;
- Add any type of ADT;
- Click on Staging in ADT's home page;
- 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); } } );
- Discovered while testing
-
LPS-78293 Checkbox for Contents in Export/Import of ADTs is disabled after Refresh Count
- Closed