Skip to content

Commit 775a6ce

Browse files
committedDec 9, 2016
Dirty workaround for #21
1 parent c70e831 commit 775a6ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎webapp/controller/CreateEntity.controller.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ sap.ui.define([
5959
var that = this,
6060
oModel = this.getModel();
6161
//Get the Path
62-
var sPath = oEvent.getSource().getBindingContext().getPath();
62+
var sPath = "/Participant";
63+
// Causes Bug Registration not possible with newest SAPUI5 #21
64+
// var sPath = oEvent.getSource().getBindingContext().getPath();
6365
// TODO added by Gregor, 2016-08-02: There should be a better way than reading all values and adding to the model
6466
oModel.setProperty(sPath + "/FirstName" ,this.getView().byId("idFirstName").getValue());
6567
oModel.setProperty(sPath + "/LastName" ,this.getView().byId("idLastName").getValue());
@@ -359,4 +361,4 @@ sap.ui.define([
359361
}
360362

361363
});
362-
});
364+
});

0 commit comments

Comments
 (0)