Skip to content

Commit

Permalink
[ETS-33] Fix Cron installation error if entry already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
MTroesken committed Aug 17, 2018
1 parent 9e4bb84 commit 55efaec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Bootstrapping/CronjobSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CronjobSetup extends Bootstrapper
public function install()
{
$id = Shopware()->Db()->fetchOne('SELECT id from s_crontab WHERE `action` = ?', [self::UPDATE_TRANSACTIONS_ACTION]);
if(empty($id)) {
if ($id === false) {
$this->bootstrap->createCronJob('RatePAY Transaction Updater', self::UPDATE_TRANSACTIONS_ACTION, self::UPDATE_TRANSACTIONS_INTERVAL_SECONDS);
}
}
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
|------|----------
|Author | Annegret Seufert
|Shop Version | `5.0.x` `5.1.x` `5.2.x` `5.3.x`
|Version | `5.2.1`
|Version | `5.2.2`
|Link | http://www.ratepay.com
|Mail | [email protected]
|Installation | see below
Expand All @@ -24,6 +24,9 @@

## Changelog

### Version 5.2.2 - Released 2018-08-17
* hotfix cronjob install in older shopware versions fails if entry already exists

### Version 5.2.1 - Released 2018-08-16
* hotfix cronjob class not found error

Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"supplier": "RatePAY GmbH",
"description": "<h2>RatePAY Payment plugin for Shopware Community Edition Version 5</h2><ul><li style='list-style: inherit;'>RatePAY Payment Module</li><li style='list-style: inherit;'>Payment means: Invoice, Direct Debit (ELV), Rate</li><li style='list-style: inherit;'>Cancellations, Returns, etc. can be created from an additional tab in the order detail view</li><li style='list-style: inherit;'>Integrated support for multishops</li><li style='list-style: inherit;'>Improved payment form with visual feedback for your customers</li><li style='list-style: inherit;'>Supported Languages: German, English</li><li style='list-style: inherit;'>Backend Log with custom View accessible from your shop backend</li></ul>",

"currentVersion": "5.2.1",
"currentVersion": "5.2.2",
"payment_confirm": true,

"compatibility": {
Expand Down

0 comments on commit 55efaec

Please sign in to comment.