Etemplate - add ability to give history log a different data source

This commit is contained in:
nathangray 2019-04-09 11:46:54 -06:00
parent 9ec214160a
commit 93647a034f

View File

@ -48,6 +48,12 @@ var et2_historylog = (function(){ "use strict"; return et2_valueWidget.extend([e
"type": "string",
"default": "user_ts,owner,status,new_value,old_value",
"description": "Columns to display. Default is user_ts,owner,status,new_value,old_value"
},
"get_rows": {
"name": "get_rows",
"type": "string",
"default": "EGroupware\\Api\\Storage\\History::get_rows",
"description": "Method to get rows"
}
},
@ -152,7 +158,7 @@ var et2_historylog = (function(){ "use strict"; return et2_valueWidget.extend([e
this._filters = {
record_id: this.options.value.id,
appname: this.options.value.app,
get_rows: 'EGroupware\\Api\\Storage\\History::get_rows'
get_rows: this.options.get_rows
};
// Warn if status_id is the same as history id, that causes overlap and missing labels