The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Client map filter doesn't work as expected - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Client map filter doesn't work as expected (/showthread.php?tid=1894)



Client map filter doesn't work as expected - phKU - Feb 10th, 2012

Hello,
I'm trying to use the client map filter to limit the client access of a view to only the submission related to him.
I've tried the 2 following setting (to be sure there is no misspelling while testing, I copy-pasted from submission company name field to the account information company name):
  1. Field: Company name
    Operator: EQUALS
    Client Field: Company name
    -> which shows no submission
  2. Field: Company name
    Operator: LIKE
    Client Field: Company name
    -> which shows all submissions
According to Ben in this post, normally it should work with the LIKE operator.
Do I miss something or is there a bug in current filter version?
Thanks in advance for any input Wink


RE: Client map filter doesn't work as expected - Ben - Feb 11th, 2012

Hmm! Does look a little buggy, doesn't it. I'll look at this and get back to you.

- Ben


RE: Client map filter doesn't work as expected - Ben - Feb 11th, 2012

Hey phKU,

Yup! It's a bug - not sure when it was introduced... but it's specific to this exact scenario: doing a Client Map filter on the Company Name field.

Since it's non-major, I'm going to wait until a few other things come up before rolling out an update. But to fix it right now, just edit the /global/code/views.php and change line 1022 from this:
PHP Code:
"company_name" => $account_info["settings"]["company_name"

to this:
PHP Code:
"settings__company_name" => $account_info["settings"]["company_name"

Then it *should* work straight away, without needing to update the View or anything.

Let me know how it goes!

- Ben



RE: Client map filter doesn't work as expected - phKU - Feb 12th, 2012

Thanks Ben, the patch you provided works perfectly (though for the FT v. 2.2.1 I've installed, the line to update is #970).
Thanks again, for taking your time and your fast reply Wink
Ralph


RE: Client map filter doesn't work as expected - nelsondcosta - Oct 13th, 2017

Just a question, when the users see the forms the can add more?