]> _ Git - cubedesigners_userdatabase.git/commitdiff
wip #3753
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 25 Nov 2020 20:21:18 +0000 (21:21 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 25 Nov 2020 20:21:18 +0000 (21:21 +0100)
src/User.php

index 47f527040716c5cc108438a7ec59139cc50c85c2..0020e4b1b550ec2c2b316fa56f4c289837daab18 100644 (file)
@@ -61,7 +61,7 @@ class User extends CubistMagicAuthenticatable
             'type' => 'Locale',
             'tab' => 'Settings']);
 
-        $extranetv1 = ['settings', 'ws_password', 'ws_settings', 'ws_rights', 'ws_domains', 'login', 'mobile', 'fax', 'notes', 'grade', 'resetpassword'];
+        $extranetv1 = ['settings', 'ws_password', 'ws_settings', 'ws_rights', 'ws_domains','ws_count', 'login', 'mobile', 'fax', 'notes', 'grade', 'resetpassword'];
 
         foreach ($extranetv1 as $f) {
             $this->addField(['name' => 'e1_' . $f,
@@ -110,7 +110,7 @@ class User extends CubistMagicAuthenticatable
             return self::$_companyNames;
         }
 
-        return isset(self::$_companyNames[$id]) ? self::$_companyNames[$id] : '-';
+        return isset(self::$_companyNames[$id]) ? self::$_companyNames[$id] : $id;
     }
 
     public function getManagedUsers()