From 525108a68dbba8e5ecee98fe2956e6699eb8e2ec Mon Sep 17 00:00:00 2001
From: Marius Burkard <m.burkard@pixcept.de>
Date: Fri, 3 Feb 2017 16:30:51 +0100
Subject: [PATCH] - fix problem with fields hidden for clients only

---
 interface/lib/classes/tform_actions.inc.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/interface/lib/classes/tform_actions.inc.php b/interface/lib/classes/tform_actions.inc.php
index da12ac83dc..150db73528 100644
--- a/interface/lib/classes/tform_actions.inc.php
+++ b/interface/lib/classes/tform_actions.inc.php
@@ -110,6 +110,8 @@ class tform_actions {
 		$app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$app->tform->formDef['name'].':'.'on_before_update', $this);
 
 		$ext_where = '';
+		$tmp_old_record = $app->tform->getDataRecord($this->id);
+		if($tmp_old_record && is_array($tmp_old_record)) $this->dataRecord = array_merge($tmp_old_record, $this->dataRecord);
 		$sql = $app->tform->getSQL($this->dataRecord, $app->tform->getCurrentTab(), 'UPDATE', $this->id, $ext_where);
 		if($app->tform->errorMessage == '') {
 
-- 
GitLab