-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix 'undefined index' notice when testing for checkboxes #23
base: master
Are you sure you want to change the base?
Conversation
That makes sense for checkboxes. Worth nothing that the equivalent to |
Hello, I have tested this correction and it looks like it is still there is still a error (but likely minor). I see the error "Undefined index: managed in..." when the fields are unamanaged. Maybe a conflict with #21 that I also have merged in my fork that has a small changed related to managed fields. I will give it a second look and report if this can be useful. |
The problem is there : checked($shib_headers['first_name']['managed'], 'on') When the value is unchecked, 'managed' key (index) doesnt exist. This is what I have done to correct it: https://github.com/devanonyme/shibboleth/commit/da436adb8c5a91210aa14c4c9a5ac9e96d7bcb2c |
@DevAnonyme I'm unable to reproduce the undefined index error that you've received. If you can pull down a copy of my repo with these PRs applied and let me know if you still see the error, I'd appreciate it. (I know this has been a while, so you may no longer be interested in this fix.) |
I will take a note to test it but it will be on a (very) slow track as I'm currently assigned to another project. |
I did the test with a few combination (keyname + unmanaged, keyname + managed, no key + unmanaged, no key + managed) and I was not able to reproduce the problem with your version. I noticed that the difference with your version |
Excellent news, thanks @DevAnonyme. Just wanted to make sure that I wasn't missing a test case in my changes. |
Hello, thank you for submitting this patch. I released version 1.8 today to resolve this and other issues and included a shoutout for your patch. I am the new maintainer of the plugin and all further work on the plugin will be done in a new GitHub repository. If you have any further issues, please don't hesitate to report them in the new repository. |
Thanks! I think I had a problem with (federated) logout but I think there where no generic solution to this one. Other than that the plugin is doing the job that we need just fine. Thanks also for taking the responsability of maintenance. |
Small fix to get rid of some annoying PHP warnings when submitting the settings panel form…