Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Show last 10 commentlog entries on Cases, with the newest one at the top
<?php
// Enrico Simonetti
// enricosimonetti.com
//
// 2018-12-28 Sugar 8.3.0
// Show last 10 commentlog entries on Cases, with the newest one at the top
//
// file: custom/Extension/modules/Cases/Ext/Vardefs/commentlog.php
//
$dictionary['Case']['fields']['commentlog']['displayParams']['max_num'] = 10;
$dictionary['Case']['fields']['commentlog']['order_by'] = 'date_entered:desc';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.