The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
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):
Do I miss something or is there a bug in current filter version? Thanks in advance for any input ![]() 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 ![]() 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? |