Skip to content

Commit

Permalink
regression fix (v242) unable to update form records; not saving form …
Browse files Browse the repository at this point in the history
…record location_data
  • Loading branch information
dleffler committed Feb 17, 2018
1 parent 97236e0 commit 19eba71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions framework/modules/forms/controllers/formsController.php
Expand Up @@ -673,7 +673,9 @@ public function submit_data() {
// $db_data->referrer = $olddata->referrer;
// $db_data->location_data = $olddata->location_data;
// $f->deleteRecord($this->params['data_id']); //fixme we delete old record/id to make this easier??
$f->updateRecord($this->params);
$db_data->id = $this->params['data_id'];
$db_data->sef_url = $this->params['sef_url'];
$f->updateRecord($db_data);
} else {
$db_data->ip = $_SERVER['REMOTE_ADDR'];
if (expSession::loggedIn()) {
Expand All @@ -689,7 +691,7 @@ public function submit_data() {
$location_data = null;
if (!empty($this->params['src'])) {
$mod = !empty($this->params['module']) ? $this->params['module'] : $this->params['controller'];
expCore::makeLocation($mod,$this->params['src'],$this->params['int']);
$location_data = expCore::makeLocation($mod,$this->params['src'],$this->params['int']);
}
$db_data->location_data = $location_data;
$f->insertRecord($db_data);
Expand Down

0 comments on commit 19eba71

Please sign in to comment.