MantisBT - v2.4 Release (Closed) | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000801 | v2.4 Release (Closed) | [All Projects] General | public | 2011-05-10 20:22 | 2011-08-16 23:37 |
Reporter | nimbus | ||||
---|---|---|---|---|---|
Assigned To | caseydk | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | 2.4 | |||
Summary | 0000801: Update key do not store in Database | ||||
Description | When edit contact, If select "Waiting Update?" then W2P will send email with a link to allow that person to edit his own information. But when click on that link there will be permission deny. "You are not authorized to use this page. If you should be authorized please contact ..." I remember I raised this issue once but I forgot to have it in bug log. :( So in this version it still exists. | ||||
Additional Information | My solution: I found out that in "do_contact_aed.php" the updatekey token is generated after Contact is stored (line 23-34). My solution at the moment is, move the generating block of updatekey to before store/del is called. //moved block if (!$del) { $updatekey = $obj->getUpdateKey(); $notifyasked = w2PgetParam($_POST, 'contact_updateask', 0); if ($notifyasked && !$updatekey) { $rnow = new CDate(); $obj->contact_updatekey = MD5($rnow->format(FMT_DATEISO)); $obj->contact_updateasked = $rnow->format(FMT_DATETIME_MYSQL); $obj->contact_lastupdate = ''; // $obj->updateNotify(); } } //end moved block $action = ($del) ? 'deleted' : 'stored'; $result = ($del) ? $obj->delete($AppUI) : $obj->store($AppUI); if (is_array($result)) { $AppUI->setMsg($result, UI_MSG_ERROR, true); $AppUI->holdObject($obj); $AppUI->redirect('m=contacts&a=addedit'); } if ($result) { $AppUI->setMsg('Contact '.$action, UI_MSG_OK, true); if ($notifyasked && !$updatekey) { $obj->updateNotify(); } } | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files |
Notes | |||||
|
|||||
|
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2011-05-10 20:22 | nimbus | New Issue | |||
2011-05-11 05:29 | caseydk | Status | new => assigned | ||
2011-05-11 05:29 | caseydk | Assigned To | => caseydk | ||
2011-05-21 22:27 | caseydk | Project | v2.3 Release (Closed) => v2.4 Release (Closed) | ||
2011-05-30 21:21 | caseydk | Note Added: 0001956 | |||
2011-05-30 21:21 | caseydk | Status | assigned => resolved | ||
2011-05-30 21:21 | caseydk | Fixed in Version | => 3.0 | ||
2011-05-30 21:21 | caseydk | Resolution | open => fixed | ||
2011-08-16 23:37 | caseydk | Status | resolved => closed | ||
2011-08-16 23:37 | caseydk | Fixed in Version | => 2.4 |