Skip to content

Commit

Permalink
Fix 2 minor Bugs in FourallportalCommandController
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Neuhaus committed Mar 12, 2018
1 parent 1b6e598 commit 716136a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Classes/Command/FourallportalCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,11 @@ public function replayCommand($events = 1, $module = null, $objectId = null)
public function syncCommand($sync = false, $module = null, $exclude = null)
{
$this->lockSync();
$exclude = explode(',', $exclude);
if (!empty($exclude)) {
$exclude = explode(',', $exclude);
} else {
$exclude = [];
}

if (!$sync) {
$this->processAllPendingAndDeferredEvents();
Expand All @@ -648,6 +652,10 @@ public function syncCommand($sync = false, $module = null, $exclude = null)
continue;
}
$client = $module->getServer()->getClient();
if (empty($module->getModuleName())) {
$connectorConfig = $client->getConnectorConfig($module->getConnectorName());
$module->setModuleName($connectorConfig['moduleConfig']['module_name']);
}
/** @var Module $configuredModule */
if ($sync && $module->getLastEventId() > 0) {
$module->setLastEventId(0);
Expand Down

0 comments on commit 716136a

Please sign in to comment.