// we have to call the update_client_templates function
...
...
@@ -222,6 +223,7 @@ class client_templates {
* Write all back to the database
*/
$update='';
if(!$is_reseller)unset($limits['limit_client']);// Only Resellers may have limit_client set in template to ensure that we do not convert a client to reseller accidently.
$records=$app->db->queryAllRecords("SELECT template_id,template_name FROM client_template WHERE template_type ='m'");
$records=$app->db->queryAllRecords("SELECT template_id,template_name FROM client_template WHERE template_type ='m' and ".$app->tform->getAuthSQL('r'));