I am trying to create a subpanel on the Users modules for any modules based on the created_by field on that module matching up with the id field on User, and am heavily basing it on examples in the following forum string from pgr:
is this possible, or is Users some kind of special module? I am getting a permanent loading circle when trying to open the subpanel, and can create subpanels fine using that example above on other modules.
<?php
class BuildContactsSubpanelQueryService
{
public function __construct(){}
public function buildQuery($param){
global $app;
$controller = $app->controller;
$bean = $controller->bean;
$query = "SELECT * FROM contacts WHERE contacts.created_by = '$bean->id'";
return $query;
}
}
with title created by custom/Extension/modules/Users/Ext/Language/en_us.users_contacts_subpanel.php
on this fix I get a good looking subpanel header on the page but when you click it to drop it down its the loading circle(s) permanently, any advice? thanks again for your time
I’ve got MySQL error 1064: you have an error in your SQL syntax;
but I tried to mirror your syntax on that old example as strictly as possible, given that these are all default fields do you see anything glaringly wrong with my syntax in that query by chance?