From 0e224a7daa6e3c2353874988626d12f092077f2f Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 21 Oct 2009 01:53:49 +0000 Subject: [PATCH] Merge branch 'master' of git@github.com:sminnee/silverstripe-cms From: Sam Minnee git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@89702 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index f2724e86..29f349c2 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -720,7 +720,7 @@ JS; } $newVersion = ((int)$record->Version) + 1; - FormResponse::add("\$('Form_EditForm_Version').value = {$newVersion};"); + FormResponse::add("if(\$('Form_EditForm_Version')) \$('Form_EditForm_Version').value = {$newVersion};"); // If the 'Save & Publish' button was clicked, also publish the page if (isset($urlParams['publish']) && $urlParams['publish'] == 1) {