Defer setting filter until later, fixes problem with new entries not having an ID

This commit is contained in:
Nathan Gray 2012-06-13 15:13:49 +00:00
parent 0a076525b8
commit ed9985197a

View File

@ -48,12 +48,6 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider],{
this.innerDiv = $j(document.createElement("div"))
.appendTo(this.div);
this._filters = {
record_id: this.options.value.id,
appname: this.options.value.app,
get_rows: 'historylog::get_rows'
};
},
doLoadingFinished: function() {
@ -96,6 +90,12 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider],{
*/
finishInit: function() {
this._filters = {
record_id: this.options.value.id,
appname: this.options.value.app,
get_rows: 'historylog::get_rows'
};
// Create the dynheight component which dynamically scales the inner
// container.
this.dynheight = new et2_dynheight(this.egw().window,