This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//----------------------------------------------------------------------------- | |
if(!defined('sugarEntry'))define('sugarEntry', true); | |
require_once('include/entryPoint.php'); | |
//----------------------------------------------------------------------------- | |
$db = DBManagerFactory::getInstance(); | |
//-- TEMPLATE = birgit | |
$query = "SELECT id from users where user_name='birgit'"; | |
$result = $db->query($query, true,"Error fetching birgit: "); |