From 21e2aadc443dbfc5da61aa0195dceedc34598bf4 Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Mon, 7 Mar 2016 13:55:22 +0000
Subject: [PATCH] SSDM-3292 : New Toolbar, null pointer fix.

SVN: 35816
---
 .../webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js
index 9347e45c262..1553fc5d4c7 100644
--- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js
+++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js
@@ -131,8 +131,8 @@ function SampleFormView(sampleFormController, sampleFormModel) {
 		//
 		// Toolbar
 		//
+		var toolbarModel = [];
 		if(this._sampleFormModel.mode !== FormMode.CREATE) {
-			var toolbarModel = [];
 			
 			//Edit
 			if(this._sampleFormModel.mode === FormMode.VIEW) {
-- 
GitLab