[Bug #623] Fix bug Error creating order from template
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
This commit is contained in:
parent
d1a1cba1ab
commit
bef57194e3
1 changed files with 7 additions and 0 deletions
|
|
@ -174,6 +174,7 @@ public class OrderCRUDController extends GenericForwardComposer {
|
|||
showOrderElementFilter();
|
||||
showCreateButtons(false);
|
||||
orderModel.prepareCreationFrom(template);
|
||||
addEditWindowIfNecessary();
|
||||
showEditWindow(_("Create order from Template"));
|
||||
}
|
||||
|
||||
|
|
@ -256,6 +257,12 @@ public class OrderCRUDController extends GenericForwardComposer {
|
|||
Util.reloadBindings(editOrderElementWindow);
|
||||
}
|
||||
|
||||
private void addEditWindowIfNecessary() {
|
||||
if (editWindow == null) {
|
||||
addEditWindow();
|
||||
}
|
||||
}
|
||||
|
||||
private void addEditWindow() {
|
||||
if (editWindow != null) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue