Skip to content

Commit

Permalink
Fixed error with not found modAction in ms2OrderStatusSlackify plugin…
Browse files Browse the repository at this point in the history
… for miniShop2
  • Loading branch information
Ivan Klimchuk committed Mar 27, 2017
1 parent 4dac5e9 commit 376e82c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _build/build.transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

define('PKG_NAME', 'Slackify');
define('PKG_NAME_LOWER', strtolower(PKG_NAME));
define('PKG_VERSION', '0.8.1');
define('PKG_VERSION', '0.8.2');
define('PKG_RELEASE', 'pl');

require_once 'xpdo/xpdo/xpdo.class.php';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@
$a->setPretext($new ? 'New order was made on site' : 'Status of order was changed');
$a->setColor(new Color('#' . $status->get('color'))); // from status

/** @var modAction $action */
$action = $modx->getObject('modAction', ['namespace' => 'minishop2', 'controller' => 'controllers/mgr/orders']);
$link = new Link(rtrim(MODX_SITE_URL, '/') . MODX_MANAGER_URL . "index.php?a={$action->get('id')}#&order={$order->get('id')}", $order->get('num'));
$title = $new
? "New order $link was placed on the site"
: "Order $link was updated";
$link = new Link(rtrim(MODX_SITE_URL, '/') . MODX_MANAGER_URL . "index.php?a=mgr/orders&namespace=minishop2#&order={$order->get('id')}", $order->get('num'));
$title = $new ? "New order $link was placed on the site" : "Order $link was updated";

$a->setTitle(new Title($title));
$a->addField(new Field('Status', $status->get('name'), true));
Expand All @@ -66,5 +62,5 @@

$slackify->send($message);

break;
break;
}
4 changes: 4 additions & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
This file shows the changes in recent releases of Slackify.

Slackify 0.8.2-pl (March 27, 2017)
========================================
- Fixed error with not found modAction in ms2OrderStatusSlackify plugin for miniShop2

Slackify 0.8.1-pl (September 28, 2015)
========================================
- Fixed error when modx could not load Slackify class as service
Expand Down

0 comments on commit 376e82c

Please sign in to comment.