diff options
author | onefang | 2020-04-23 03:10:33 +1000 |
---|---|---|
committer | onefang | 2020-04-23 03:10:33 +1000 |
commit | 21123c8d637eda66ecd6e7e54fa4e452dadae4a6 (patch) | |
tree | 45ddc8f62a8523a0692e6778f13d12ed542c3a89 /src | |
parent | Code white space fixup. (diff) | |
download | opensim-SC-21123c8d637eda66ecd6e7e54fa4e452dadae4a6.zip opensim-SC-21123c8d637eda66ecd6e7e54fa4e452dadae4a6.tar.gz opensim-SC-21123c8d637eda66ecd6e7e54fa4e452dadae4a6.tar.bz2 opensim-SC-21123c8d637eda66ecd6e7e54fa4e452dadae4a6.tar.xz |
If the validation changed things, reload the input form.
Diffstat (limited to 'src')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 3677601..59624b4 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -5541,9 +5541,11 @@ void account_html(char *file, reqData *Rd, HTMLfile *thisFile) | |||
5541 | } | 5541 | } |
5542 | } | 5542 | } |
5543 | doit = Rd->doit; | 5543 | doit = Rd->doit; |
5544 | form = Rd->form; | ||
5544 | } | 5545 | } |
5545 | 5546 | ||
5546 | // Submit the data. | 5547 | // Submit the data. Reload input form and sub in case things got changed by the validation functions. |
5548 | iF = accountPages->get(accountPages, Rd->form, NULL, false); | ||
5547 | sub = iF->subs->get(iF->subs, Rd->doit, NULL, false); | 5549 | sub = iF->subs->get(iF->subs, Rd->doit, NULL, false); |
5548 | //if (strcmp("POST", Rd->Method) == 0) // Not such a good idea, since we are faking a submit for account validation, which is a GET. | 5550 | //if (strcmp("POST", Rd->Method) == 0) // Not such a good idea, since we are faking a submit for account validation, which is a GET. |
5549 | { | 5551 | { |