Add Liquibase 1.5 changelog to changelogs.
Fix compile errors. Code refactoring.
This commit is contained in:
parent
aa7f135b0e
commit
6aaae08f42
4 changed files with 10 additions and 26 deletions
|
|
@ -40,6 +40,9 @@
|
||||||
<value>
|
<value>
|
||||||
org/libreplan/business/orders/entities/Orders.hbm.xml
|
org/libreplan/business/orders/entities/Orders.hbm.xml
|
||||||
</value>
|
</value>
|
||||||
|
<value>
|
||||||
|
org/libreplan/business/templates/entities/Templates.hbm.xml
|
||||||
|
</value>
|
||||||
<value>
|
<value>
|
||||||
org/libreplan/business/planner/entities/Tasks.hbm.xml
|
org/libreplan/business/planner/entities/Tasks.hbm.xml
|
||||||
</value>
|
</value>
|
||||||
|
|
|
||||||
|
|
@ -231,34 +231,12 @@ public class DashboardControllerGlobal extends GenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove time, timezone from full-date string
|
||||||
private String getOrderInitDate(Order order) throws ParseException {
|
private String getOrderInitDate(Order order) throws ParseException {
|
||||||
// Remove time, timezone from full-date string
|
return new SimpleDateFormat("EEE MMM dd yyyy").format(order.getInitDate());
|
||||||
DateFormat inputFormatter = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");
|
|
||||||
DateFormat outputFormatter = new SimpleDateFormat("EEE MMM dd yyyy");
|
|
||||||
String input = "";
|
|
||||||
String outputInit = "";
|
|
||||||
String outputDeadline = "";
|
|
||||||
Date date = null;
|
|
||||||
|
|
||||||
input = order.getInitDate().toString();
|
|
||||||
date = inputFormatter.parse(input);
|
|
||||||
|
|
||||||
return outputInit = outputFormatter.format(date);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getOrderDeadline(Order order) throws ParseException {
|
private String getOrderDeadline(Order order) throws ParseException {
|
||||||
// Remove time, timezone from full-date string
|
return new SimpleDateFormat("EEE MMM dd yyyy").format(order.getDeadline());
|
||||||
DateFormat inputFormatter = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");
|
|
||||||
DateFormat outputFormatter = new SimpleDateFormat("EEE MMM dd yyyy");
|
|
||||||
String input = "";
|
|
||||||
String outputInit = "";
|
|
||||||
String outputDeadline = "";
|
|
||||||
Date date = null;
|
|
||||||
|
|
||||||
input = order.getDeadline().toString();
|
|
||||||
date = inputFormatter.parse(input);
|
|
||||||
|
|
||||||
return outputDeadline = outputFormatter.format(date);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showStoredColumn() throws ParseException {
|
public void showStoredColumn() throws ParseException {
|
||||||
|
|
|
||||||
|
|
@ -732,7 +732,7 @@ public class TaskPropertiesController extends GenericForwardComposer {
|
||||||
|
|
||||||
private void EmailNotificationAddNewWithTaskAssignedToResource(){
|
private void EmailNotificationAddNewWithTaskAssignedToResource(){
|
||||||
|
|
||||||
if ( allocationResult != null ) {
|
if ( allocationResult.getSpecificAllocations().size() != 0 ) {
|
||||||
|
|
||||||
/* Check if resources in allocation are bound by user and are in role ROLE_EMAIL_TASK_ASSIGNED_TO_RESOURCE
|
/* Check if resources in allocation are bound by user and are in role ROLE_EMAIL_TASK_ASSIGNED_TO_RESOURCE
|
||||||
* setUser method calling manually because, after initialization user will be null
|
* setUser method calling manually because, after initialization user will be null
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,9 @@
|
||||||
<value>
|
<value>
|
||||||
org/libreplan/business/orders/entities/Orders.hbm.xml
|
org/libreplan/business/orders/entities/Orders.hbm.xml
|
||||||
</value>
|
</value>
|
||||||
|
<value>
|
||||||
|
org/libreplan/business/templates/entities/Templates.hbm.xml
|
||||||
|
</value>
|
||||||
<value>
|
<value>
|
||||||
org/libreplan/business/planner/entities/Tasks.hbm.xml
|
org/libreplan/business/planner/entities/Tasks.hbm.xml
|
||||||
</value>
|
</value>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue