Skip to content

Commit

Permalink
Merge remote-tracking branch 'OpenCPS/release-candidate-2.2' into rel…
Browse files Browse the repository at this point in the history
…ease-candidate-2.2
  • Loading branch information
dangkhanhtrung committed Jul 2, 2019
2 parents 864982c + cfc8a2d commit 134c9d9
Show file tree
Hide file tree
Showing 6 changed files with 722 additions and 239 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@
<field name="sharing" type="int" />
<field name="reportName" type="String" />
<field name="reportCode" type="String" />
<field name="filterConfig" type="String" />
<field name="tableConfig" type="String" />
<field name="userConfig" type="String" />
<field name="filterConfig" type="String" >
<hint name="max-length">65535</hint>
</field>
<field name="tableConfig" type="String" >
<hint name="max-length">65535</hint>
</field>
<field name="userConfig" type="String" >
<hint name="max-length">1000</hint>
</field>
<field name="reportType" type="String" />
</model>
</model-hints>
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public Response getZaloUIdByTelNo(

}
catch (Exception e) {

_log.debug(e);
return Response.status(500).entity(StringPool.BLANK).build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public class PropKeys {
public static final String PORTAL_DOMAIN = "portal.domain";

public static final String MAIL_ADMIN_SERVER = "admin.email.from.address";

public static final String NAME_ADMIN_SERVER = "admin.email.from.name";

public static final String PORTAL_DOCUMENT_EDITOR_PATH =
"portal.document.editor.path";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public class PropValues {
public static final String MAIL_ADMIN_SERVER =
PropsUtil.get(PropKeys.MAIL_ADMIN_SERVER);

public static final String NAME_ADMIN_SERVER =
PropsUtil.get(PropKeys.NAME_ADMIN_SERVER);

public static final String PORTAL_DOMAIN =
PropsUtil.get(PropKeys.PORTAL_DOMAIN);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ public static MBMessageEntry createMBMessageEntry(
dataModel.setClassPK(queue.getClassPK());
dataModel.setCreateDate(queue.getCreateDate());
dataModel.setExpireDate(queue.getExpireDate());
dataModel.setFromUsername(queue.getFromUsername());
if (Validator.isNotNull(PropValues.NAME_ADMIN_SERVER)) {
dataModel.setFromUsername(PropValues.NAME_ADMIN_SERVER);
} else {
dataModel.setFromUsername(queue.getFromUsername());
}
dataModel.setGroupId(queue.getGroupId());
dataModel.setModifiedDate(queue.getModifiedDate());
dataModel.setNotificationType(queue.getNotificationType());
Expand Down
Loading

0 comments on commit 134c9d9

Please sign in to comment.