If "Cookie cache bypass" is enabled, "One page profile" will not work. I hope I will be able to provide more details after code review.
The code of "Cookie cache bypass":
function cookie_cache_bypass_form_alter(&$form, $form_state, $form_id) {
$form['#submit'][] = 'cookie_cache_bypass_submit';
}
function cookie_cache_bypass_submit() {
global $cookie_domain;
$lifetime = variable_get('cache_lifetime', 300);
setcookie('NO_CACHE', 'Y', $_SERVER['REQUEST_TIME'] + ($lifetime + 300), '/', $cookie_domain);
}
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | onepageprofile-restore-submit-1420284-2.patch | 1.11 KB | mcarbone |
Comments
Comment #1
ss81 commentedDescription of issue: all categories are shown on http://site.com/user/%/edit, but $op "update" is not generated by system. Here is the list of operations, which I see after submit (we have 2 profile categories):
Comment #2
mcarbone commentedActually, this is a problem with any module that uses a custom submit handler that applies to the user_profile form. There's already a fix in place in the module specifically for simplenews doing this, so I just moved that out to have it always apply.