forked from extern/egroupware
Etemplate - add ability to give history log a different data source
This commit is contained in:
parent
9ec214160a
commit
93647a034f
@ -48,6 +48,12 @@ var et2_historylog = (function(){ "use strict"; return et2_valueWidget.extend([e
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "user_ts,owner,status,new_value,old_value",
|
"default": "user_ts,owner,status,new_value,old_value",
|
||||||
"description": "Columns to display. Default is 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 = {
|
this._filters = {
|
||||||
record_id: this.options.value.id,
|
record_id: this.options.value.id,
|
||||||
appname: this.options.value.app,
|
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
|
// Warn if status_id is the same as history id, that causes overlap and missing labels
|
||||||
|
Loading…
Reference in New Issue
Block a user