Skip to content

Commit

Permalink
Set option for num_rows
Browse files Browse the repository at this point in the history
  • Loading branch information
asig2016 committed Dec 1, 2017
1 parent 227a5b2 commit e9de76a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/js/etemplate/et2_widget_historylog.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ var et2_historylog = (function(){ "use strict"; return et2_valueWidget.extend([e
// Skip getting data if there's no ID
if(!this.value.id) return;

// Set num_rows to fetch via nextmatch
if ( this.options.value['num_rows'] )
_queriedRange['num_rows'] = this.options.value['num_rows'];

// Pass the fetch call to the API
this.egw().dataFetch(
this.getInstanceManager().etemplate_exec_id,
Expand Down
1 change: 1 addition & 0 deletions api/src/Storage/Tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
* $content['history'] = array(
* 'id' => 123,
* 'app' => 'calendar',
* 'num_rows' => 50, // optional, defaults to 50
* 'status-widgets' => array(
* 'title' => 'label', // no need to set, as default is label
* 'date' => 'datetime',
Expand Down

0 comments on commit e9de76a

Please sign in to comment.