Fix issue in entry points renaming method
FEA: ItEr76S28UserDashboard
This commit is contained in:
parent
36e6952a80
commit
b3ea221f6d
3 changed files with 5 additions and 5 deletions
|
|
@ -36,6 +36,6 @@ public interface IMonthlyTimesheetController {
|
|||
void goToCreateOrEditForm(LocalDate date);
|
||||
|
||||
@EntryPoint({ "date", "resource" })
|
||||
void goToCreateOrEditForm(LocalDate date, Resource resource);
|
||||
void goToCreateOrEditFormForResource(LocalDate date, Resource resource);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ public class MonthlyTimesheetController extends GenericForwardComposer
|
|||
}
|
||||
|
||||
@Override
|
||||
public void goToCreateOrEditForm(LocalDate date,
|
||||
public void goToCreateOrEditFormForResource(LocalDate date,
|
||||
org.libreplan.business.resources.entities.Resource resource) {
|
||||
monthlyTimesheetModel.initCreateOrEdit(date, resource);
|
||||
initTimesheet(date);
|
||||
|
|
@ -518,7 +518,7 @@ public class MonthlyTimesheetController extends GenericForwardComposer
|
|||
if (monthlyTimesheetModel.isCurrentUser()) {
|
||||
goToCreateOrEditForm(monthlyTimesheetModel.getDate());
|
||||
} else {
|
||||
goToCreateOrEditForm(monthlyTimesheetModel.getDate(),
|
||||
goToCreateOrEditFormForResource(monthlyTimesheetModel.getDate(),
|
||||
monthlyTimesheetModel.getWorker());
|
||||
}
|
||||
Util.reloadBindings(timesheet);
|
||||
|
|
|
|||
|
|
@ -686,7 +686,7 @@ public class WorkReportCRUDController extends GenericForwardComposer implements
|
|||
private void goToEditMonthlyTimeSheet(WorkReport workReport) {
|
||||
Date date = workReport.getWorkReportLines().iterator().next().getDate();
|
||||
Resource resource = workReport.getResource();
|
||||
monthlyTimesheetController.goToCreateOrEditForm(
|
||||
monthlyTimesheetController.goToCreateOrEditFormForResource(
|
||||
LocalDate.fromDateFields(date), resource);
|
||||
}
|
||||
|
||||
|
|
@ -1970,7 +1970,7 @@ public class WorkReportCRUDController extends GenericForwardComposer implements
|
|||
_("Please select a worker"));
|
||||
}
|
||||
|
||||
monthlyTimesheetController.goToCreateOrEditForm(
|
||||
monthlyTimesheetController.goToCreateOrEditFormForResource(
|
||||
LocalDate.fromDateFields(date), resource);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue