Explorar el Código

Add cast user_enabled as text

FusionPBX hace 5 años
padre
commit
0c83df9397
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      core/users/users.php

+ 4 - 3
core/users/users.php

@@ -17,7 +17,7 @@
 
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2008 - 2019
+	Portions created by the Initial Developer are Copyright (C) 2008 - 2020
 	the Initial Developer. All Rights Reserved.
 
 	Contributor(s):
@@ -129,7 +129,8 @@
 	$offset = $rows_per_page * $page;
 
 //get the list
-	$sql = "select * from view_users ";
+	$sql = "select domain_name, user_uuid, username, groups, contact_organization,contact_name, cast(user_enabled as text) ";
+	$sql .= "from view_users ";
 	if ($_GET['show'] == "all" && permission_exists('user_all')) {
 		if (isset($sql_search)) {
 			$sql .= "where ".$sql_search;
@@ -303,4 +304,4 @@
 //include the footer
 	require_once "resources/footer.php";
 
-?>
+?>