Skip to content

Commit

Permalink
Revert "Fixed default value of compare-dates option and added functio…
Browse files Browse the repository at this point in the history
…nality to export command"

This reverts commit d0596a3.
Blanca-Esqueda committed Dec 14, 2022
1 parent d0596a3 commit 0c4e035
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Commands/ContentSyncCommands.php
Original file line number Diff line number Diff line change
@@ -205,7 +205,7 @@ public function import($label = NULL, array $options = [
'uuids' => '',
'actions' => '',
'skiplist' => FALSE,
'compare-dates' => FALSE ]) {
'compare-dates' ]) {

//Generate comparer with filters.
$storage_comparer = new ContentStorageComparer($this->contentStorageSync, $this->contentStorage, $this->configManager);
@@ -305,8 +305,7 @@ public function export($label = NULL, array $options = [
'actions' => '',
'files' => '',
'include-dependencies' => FALSE,
'skiplist' => FALSE,
'compare-dates' => FALSE ]) {
'skiplist' => FALSE ]) {

//Generate comparer with filters.
$storage_comparer = new ContentStorageComparer($this->contentStorage, $this->contentStorageSync, $this->configManager);
@@ -333,9 +332,7 @@ public function export($label = NULL, array $options = [
$change_list[$collection][$op] = $storage_comparer->getChangelist($op, $collection);
}
}
} elseif ($options['compare-dates']) {
$storage_comparer->createChangelistbyCollection($collection, TRUE);
} else {
}else{
$change_list[$collection] = $storage_comparer->getChangelist(NULL, $collection);
}
$change_list = array_map('array_filter', $change_list);

0 comments on commit 0c4e035

Please sign in to comment.