Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
dspaan wrote:Hey Bill
I didn't add my version because i'm pretty sure i'm on a recent svn release but here it is:
$template_stmt="select template_id, template_name from vicidial_custom_leadloader_templates order by template_id asc";
$template_stmt="SELECT template_id, template_name FROM vicidial_custom_leadloader_templates WHERE list_id IN (SELECT list_id FROM vicidial_lists $whereLOGallowed_campaignsSQL) ORDER BY template_id asc";
blackbird2306 wrote:The custom template table in database has no user group column. But I can help you just with the restriction now as a temporary solution and it's very simple. Make changes in "AST_admin_template_maker.php" and "admin_listloader_fourth_gen.php".
Change this line (both files have the same line in it):
- Code: Select all
$template_stmt="select template_id, template_name from vicidial_custom_leadloader_templates order by template_id asc";
to:
- Code: Select all
$template_stmt="SELECT template_id, template_name FROM vicidial_custom_leadloader_templates WHERE list_id IN (SELECT list_id FROM vicidial_lists $whereLOGallowed_campaignsSQL) ORDER BY template_id asc";
This change leads to following behaviour:
When creating a template you have to define a list id, which the template will load into. When this list is assigned to an allowed campaign in user group then also the template is selectable/viewable. Make sure the list will not be deleted and is assigned to a campaign! My goal was to help you the easiest way as possible!
mflorell wrote:These changes have been committed to svn/trunk. Thanks!
Users browsing this forum: Majestic-12 [Bot] and 135 guests