diff --git a/api/js/etemplate/et2_widget_historylog.js b/api/js/etemplate/et2_widget_historylog.js index 3ccf9a43a2..db127393fa 100644 --- a/api/js/etemplate/et2_widget_historylog.js +++ b/api/js/etemplate/et2_widget_historylog.js @@ -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