From: Mark Date: Mon, 19 Dec 2016 09:23:39 +0000 (+0200) Subject: debugging click to refresh on auction X-Git-Url: https://xp-dev.com/git/namibia/commitdiff_plain/bb37653ebeeea0b902d33e022d25518951ec592d debugging click to refresh on auction --- diff --git a/module/Auction/src/Auction/Service/Auction.php b/module/Auction/src/Auction/Service/Auction.php index 588627e..22da77e 100644 --- a/module/Auction/src/Auction/Service/Auction.php +++ b/module/Auction/src/Auction/Service/Auction.php @@ -21,7 +21,6 @@ class Auction extends \Auction\DataBin\Auction \Stock\Entity\Stock $stock, $previousState, array $routingData = array() ) { - \Utility\Debug::errorLog('initNewItemFromStock' , $stock); #-> Establish initial increment value. $increments = $this->em ->getRepository('\Auction\Entity\Increment') @@ -37,7 +36,7 @@ class Auction extends \Auction\DataBin\Auction } #-> Create auction entry. if (isset($routingData['profileId'])) - {\Utility\Debug::errorLog('reroute1' , "true"); + { $profile = $this->em->find('User\\Entity\\Profile', $routingData['profileId']); $email = $profile->email; $firstName = $profile->firstName; @@ -48,7 +47,7 @@ class Auction extends \Auction\DataBin\Auction $profile = $profile->id; } else - {\Utility\Debug::errorLog('reroute1' , "false"); + { $authData = \Utility\Registry::getAuthData(); $email = $authData['email']; $firstName = $authData['firstName']; @@ -80,7 +79,7 @@ class Auction extends \Auction\DataBin\Auction $stock->highestBid = 0.00; $stock->timesListed = $stats['numAuctions']; $this->em->flush($stock); - \Utility\Debug::errorLog('created stock' , "true"); + #-> Send loaded notification. #-> Attachments. $pdf = new \Auction\Pdf\Complete(); diff --git a/public/js/app/workspace.js b/public/js/app/workspace.js index 2af4f2a..1275505 100644 --- a/public/js/app/workspace.js +++ b/public/js/app/workspace.js @@ -1174,6 +1174,8 @@ taskExecError : function( response ) { + console.log(this.itemId); + console.log(this.itemData); App.API.getTask( 'getActiveAccount', 'User', 'Profile.ActiveAccount', null, {}, function() {