@@ -27,7 +27,7 @@ public static function getModuleInfo() {
27
27
'summary ' => __ ('Tracy debugger from Nette with many PW specific custom tools. ' , __FILE__ ),
28
28
'author ' => 'Adrian Jones ' ,
29
29
'href ' => 'https://processwire.com/talk/forum/58-tracy-debugger/ ' ,
30
- 'version ' => '4.26.77 ' ,
30
+ 'version ' => '4.26.78 ' ,
31
31
'autoload ' => 100000 , // in PW 3.0.114+ higher numbers are loaded first - we want Tracy first
32
32
'singular ' => true ,
33
33
'requires ' => 'ProcessWire>=2.7.2, PHP>=5.4.4 ' ,
@@ -284,6 +284,7 @@ static public function getDefaultData() {
284
284
"userSwitcherSelector " => '' ,
285
285
"userSwitcherRestricted " => null ,
286
286
"userSwitcherIncluded " => null ,
287
+ "userSwitcherUserLabel " => 'name ' ,
287
288
"todoIgnoreDirs " => 'git, svn, images, img, errors, sass-cache, node_modules ' ,
288
289
"todoScanAssets " => null ,
289
290
"todoScanModules " => null ,
@@ -4487,6 +4488,14 @@ public function getModuleConfigInputfields(array $data) {
4487
4488
if ($ data ['userSwitcherIncluded ' ]) $ f ->attr ('value ' , $ data ['userSwitcherIncluded ' ]);
4488
4489
$ fieldset ->add ($ f );
4489
4490
4491
+ $ f = $ this ->wire ('modules ' )->get ("InputfieldText " );
4492
+ $ f ->attr ('name ' , 'userSwitcherUserLabel ' );
4493
+ $ f ->label = __ ('User label field ' , __FILE__ );
4494
+ $ f ->description = __ ('Use this to determine which user field will be used to identify users in the selection interace. ' , __FILE__ );
4495
+ $ f ->notes = __ ('Default: `name` ' , __FILE__ );
4496
+ if ($ data ['userSwitcherUserLabel ' ]) $ f ->attr ('value ' , $ data ['userSwitcherUserLabel ' ]);
4497
+ $ fieldset ->add ($ f );
4498
+
4490
4499
// requestLogger Panel
4491
4500
$ fieldset = $ this ->wire ('modules ' )->get ("InputfieldFieldset " );
4492
4501
$ fieldset ->attr ('name+id ' , 'requestLoggerPanel ' );
0 commit comments