Skip to content

Commit

Permalink
convert links tags to tag map.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jun 21, 2021
1 parent 64b4399 commit bf5cefa
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import static design.aem.utils.components.CommonUtil.getPageCreated;
import static design.aem.utils.components.ComponentsUtil.*;
import static design.aem.utils.components.ConstantsUtil.*;
import static design.aem.utils.components.TagUtil.getTagValueAsAdmin;
import static design.aem.utils.components.TagUtil.*;
import static org.apache.commons.lang3.StringUtils.isNotEmpty;

public class ContactDetails extends GenericDetails {
Expand Down Expand Up @@ -106,6 +106,10 @@ protected Map<String, Object> processComponentFields() {
slingScriptHelper
).trim());

//convert links tags to tag content map
String[] tags = componentProperties.get("linksType", new String[]{});
componentProperties.put("linksType", getTagsAsAdmin(getSlingScriptHelper(), tags, getRequest().getLocale()));

} catch (Exception ex) {
LOGGER.error("Could not process component fields in {}", COMPONENT_DETAILS_NAME);
}
Expand Down

0 comments on commit bf5cefa

Please sign in to comment.