From e8f9436f31c99f2b1bad2b820caf72f7c7d3c939 Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Thu, 21 May 2015 05:24:50 -0400
Subject: [PATCH] - fixed csrf protection

---
 interface/lib/classes/tform_actions.inc.php |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/interface/lib/classes/tform_actions.inc.php b/interface/lib/classes/tform_actions.inc.php
index df00265..82d747f 100644
--- a/interface/lib/classes/tform_actions.inc.php
+++ b/interface/lib/classes/tform_actions.inc.php
@@ -111,9 +111,7 @@
 		$sql = $app->tform->getSQL($this->dataRecord, $app->tform->getCurrentTab(), 'UPDATE', $this->id, $ext_where);
 		if($app->tform->errorMessage == '') {
 
-			if($app->tform->formDef['db_history'] == 'yes') {
-				$this->oldDataRecord = $app->tform->getDataRecord($this->id);
-			}
+			$this->oldDataRecord = $app->tform->getDataRecord($this->id);
 
 			// Save record in database
 			$this->onUpdateSave($sql);

--
Gitblit v1.9.1