Merge branch 'master' of git@github.com:sminnee/silverstripe-cms

From: Sam Minnee <sam@silverstripe.com>

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@89702 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-10-21 01:53:49 +00:00
parent 4b7a3e20fb
commit 0e224a7daa

View File

@ -720,7 +720,7 @@ JS;
} }
$newVersion = ((int)$record->Version) + 1; $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 the 'Save & Publish' button was clicked, also publish the page
if (isset($urlParams['publish']) && $urlParams['publish'] == 1) { if (isset($urlParams['publish']) && $urlParams['publish'] == 1) {