From 82d06cadbe215d46c79797a258824d4fa14ecaed Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 19 Jun 2012 21:49:58 +0000 Subject: [PATCH] Prevent historylog customfields from overwriting actual custom fields --- etemplate/js/et2_widget_historylog.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etemplate/js/et2_widget_historylog.js b/etemplate/js/et2_widget_historylog.js index 2a4d4cea4e..b131e82352 100644 --- a/etemplate/js/et2_widget_historylog.js +++ b/etemplate/js/et2_widget_historylog.js @@ -186,6 +186,8 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider],{ var labels = {}; var cf_widget = et2_createWidget('customfields', {'readonly':true}, this); cf_widget.loadFields(); + // Override this or it may damage the real values + cf_widget.getValue = function() {return null;}; for(var key in cf_widget.widgets) { // Add label