Skip to content

Commit

Permalink
#28780 include in 24.04.24 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
gortiz-dotcms committed Dec 4, 2024
1 parent 49315ab commit 9a452a3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions dotCMS/hotfix_tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,4 @@ This maintenance release includes the following code fixes:
83. https://github.com/dotCMS/core/issues/30724 : Task URL redirecting only to language_id=1 #30724
84. https://github.com/dotCMS/core/issues/28511 : Rename Title Column #28511
85. https://github.com/dotCMS/core/issues/28512 : Rename Date Updated Column #28512
86. https://github.com/dotCMS/core/issues/28780 : Add Hint support for relationship fields #28780
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ public abstract static class Builder implements RelationshipFieldBuilder {
@JsonIgnore
public Collection<ContentTypeFieldProperties> getFieldContentTypeProperties(){
return list(ContentTypeFieldProperties.REQUIRED, ContentTypeFieldProperties.NAME,
ContentTypeFieldProperties.RELATIONSHIPS, ContentTypeFieldProperties.SEARCHABLE);
ContentTypeFieldProperties.RELATIONSHIPS, ContentTypeFieldProperties.HINT, ContentTypeFieldProperties.SEARCHABLE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<%@ page import="org.apache.poi.ss.usermodel.Row" %>
<%@ page import="com.dotcms.contenttype.transform.field.FieldTransformer" %>
<%@ page import="com.dotmarketing.util.Logger" %>
<%@ page import="java.util.Optional" %>
<!DOCTYPE html>
<script type='text/javascript' src='/dwr/interface/LanguageAjax.js'></script>

Expand Down Expand Up @@ -442,6 +443,17 @@
}%>

<div class="fieldName">
<%
String hint = Optional.ofNullable(f.getHint())
.filter(UtilMethods::isSet)
.orElse(null);
if (hint != null) {
%>
<a href="#" id="tip-<%=f.getVelocityVarName()%>"><span class="hintIcon"></span></a>
<span dojoType="dijit.Tooltip" connectId="tip-<%=f.getVelocityVarName()%>" position="above" style="width:100px;">
<span class="contentHint"><%=hint%></span>
</span>
<%}%>
<% if(f.isRequired()) {%>
<label class="required">
<%} else {%>
Expand Down

0 comments on commit 9a452a3

Please sign in to comment.