You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolve "mysql error at customer->edit->address and customer->edit->limits because groups is reserved keyword in mysql 8+ (not in mariadb i think)"
Closes #6764
See merge request ispconfig/ispconfig3!1952
Copy file name to clipboardExpand all lines: interface/lib/classes/functions.inc.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -672,7 +672,7 @@ public function func_client_cancel($client_id,$cancel) {
672
672
$result = false;
673
673
}
674
674
return$result;
675
-
}
675
+
}
676
676
677
677
/**
678
678
* Lookup a client's group + all groups he is reselling.
@@ -683,8 +683,8 @@ function clientid_to_groups_list($client_id) {
683
683
global$app;
684
684
685
685
if ($client_id != null) {
686
-
// Get the clients groupid, and incase it's a reseller the groupid's of it's clients.
687
-
$group = $app->db->queryOneRecord("SELECT GROUP_CONCAT(groupid) AS groups FROM `sys_group` WHERE client_id IN (SELECT client_id FROM `client` WHERE client_id=? OR parent_client_id=?)", $client_id, $client_id);
686
+
// Get the clients groupid, and in case it's a reseller the groupid's of its clients.
687
+
$group = $app->db->queryOneRecord("SELECT GROUP_CONCAT(groupid) AS `groups` FROM `sys_group` WHERE client_id IN (SELECT client_id FROM `client` WHERE client_id=? OR parent_client_id=?)", $client_id, $client_id);
Copy file name to clipboardExpand all lines: interface/web/dashboard/dashlets/limits.php
+3-19Lines changed: 3 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ public function show($limit_to_client_id = 0)
9
9
$limits = array();
10
10
11
11
/* Limits to be shown*/
12
-
12
+
13
13
$limits[] = array('field' => 'limit_mailquota',
14
14
'db_table' => 'mail_user',
15
15
'db_where' => 'quota > 0', /* Count only posive value of quota, negative value -1 is unlimited */
@@ -75,7 +75,7 @@ public function show($limit_to_client_id = 0)
75
75
'db_table' => 'web_domain',
76
76
'db_where' => 'hd_quota > 0', /* Count only posive value of quota, negative value -1 is unlimited */
77
77
'q_type' => 'hd_quota');
78
-
78
+
79
79
$limits[] = array('field' => 'limit_web_domain',
80
80
'db_table' => 'web_domain',
81
81
'db_where' => "type = 'vhost'");
@@ -112,7 +112,7 @@ public function show($limit_to_client_id = 0)
112
112
'db_table' => 'web_database',
113
113
'db_where' => 'database_quota > 0', /* Count only posive value of quota, negative value -1 is unlimited */
114
114
'q_type' => 'database_quota');
115
-
115
+
116
116
$limits[] = array('field' => 'limit_database',
117
117
'db_table' => 'web_database',
118
118
'db_where' => "");
@@ -226,20 +226,4 @@ public function _get_assigned_quota($limit, $limit_to_client_id)
226
226
}
227
227
return$quotaMB;
228
228
}
229
-
230
-
/**
231
-
* Lookup a client's group + all groups he is reselling.
232
-
*
233
-
* @return string Comma separated list of groupid's
234
-
*/
235
-
functionclientid_to_groups_list($client_id) {
236
-
global$app;
237
-
238
-
if ($client_id != null) {
239
-
// Get the clients groupid, and incase it's a reseller the groupid's of it's clients.
240
-
$group = $app->db->queryOneRecord("SELECT GROUP_CONCAT(groupid) AS groups FROM `sys_group` WHERE client_id IN (SELECT client_id FROM `client` WHERE client_id=? OR parent_client_id=?)", $client_id, $client_id);
0 commit comments