From eef227d60e3b7af7e45590bb2584974e4fe8fe68 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 17 Jun 2020 14:32:42 +0200 Subject: [PATCH] wip #3712 @2 --- src/User.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/User.php b/src/User.php index 53e57c7..1cebf08 100644 --- a/src/User.php +++ b/src/User.php @@ -6,7 +6,7 @@ use Cubist\Backpack\app\Magic\Models\CubistMagicAuthenticatable; class User extends CubistMagicAuthenticatable { - protected $connection='extranet_users'; + protected $connection = 'extranet_users'; protected $table = 'user'; protected $_options = ['name' => 'users', 'singular' => 'user', @@ -36,7 +36,7 @@ class User extends CubistMagicAuthenticatable 'type' => 'SelectFromModel', 'optionsmodel' => Company::class, 'tab' => 'Contact', - 'column'=>true, + 'column' => true, ]); $this->addField(['name' => 'address', @@ -59,6 +59,14 @@ class User extends CubistMagicAuthenticatable 'label' => 'Locale', 'type' => 'Locale', 'tab' => 'Settings']); + + $extranetv1 = ['settings', 'ws_password', 'ws_settings', 'ws_rights', 'ws_domains', 'login', 'mobile', 'fax', 'notes']; + + foreach ($extranetv1 as $f) { + $this->addField(['name' => 'e1_' . $f, + 'type' => 'Hidden']); + } + } public function getNameAttribute() -- 2.39.5