diff options
author | zoaked <zoaked@users.noreply.github.com> | 2015-09-20 23:16:24 +0200 |
---|---|---|
committer | zoaked <zoaked@users.noreply.github.com> | 2015-09-20 23:16:24 +0200 |
commit | 60858b65a4be78b1d384492588b52e98fd644403 (patch) | |
tree | 093bce00c33c105b85415e16d40bb0e4bc249848 /readme.rst | |
parent | 882ab12a32c1c2ccef3e833c319b54eab7ee92ec (diff) |
Persist config file settings when resetting form_validation
When checking multiple arrays using form_validation you have to call reset_validation between each separate check due to the instance of the library being a singleton. The issue comes in when the settings are loaded from a config file as they are initially loaded from a parameter in the constructor, but are set to an empty array when resetting the class. To get around this issue a copy of the config parameter is made and then the copy is used to reset the rules when clearing.
Diffstat (limited to 'readme.rst')
0 files changed, 0 insertions, 0 deletions