diff --git a/src/Forms/GridField/SaveAllButton.php b/src/Forms/GridField/SaveAllButton.php
index e2a07a0..fd85825 100644
--- a/src/Forms/GridField/SaveAllButton.php
+++ b/src/Forms/GridField/SaveAllButton.php
@@ -140,7 +140,7 @@ class SaveAllButton implements GridField_HTMLProvider, GridField_ActionProvider
$list->each(function ($item) {
if ($item->hasExtension('Versioned')) {
$item->writeToStage('Stage');
- $item->publish('Stage', 'Live');
+ $item->copyVersionToStage('Stage', 'Live');
}
});
}
diff --git a/src/Tests/TestServer.php b/src/Tests/TestServer.php
index 5167417..53e175e 100755
--- a/src/Tests/TestServer.php
+++ b/src/Tests/TestServer.php
@@ -42,7 +42,10 @@ class TestServer extends BuildTask
if (is_writable(TEMP_FOLDER)) {
- echo self::success('TMP (cache) dir '.TEMP_FOLDER.' dir is writable.');
+ echo self::success(
+ 'TMP (cache) dir '.TEMP_FOLDER.' dir is writable.'
+ .'Available space: '.self::formatBytes(disk_free_space(TEMP_FOLDER))
+ );
} else {
echo self::error('TMP (cache) dir '.TEMP_FOLDER.' dir is no writable!');
}
@@ -75,7 +78,10 @@ class TestServer extends BuildTask
}
if (is_writable(ASSETS_DIR)) {
- echo self::success('Assets dir '.ASSETS_DIR.' dir is writable.');
+ echo self::success(
+ 'Assets dir '.ASSETS_DIR.' dir is writable.'
+ .'Available space: '.self::formatBytes(disk_free_space(ASSETS_DIR))
+ );
} else {
echo self::error('Assets dir '.ASSETS_DIR.' dir is no writable!');
}