Skip to content

Commit

Permalink
#340 - fixed a bug affecting the setting of the ActiveRecordID param …
Browse files Browse the repository at this point in the history
…in the request object upon saving an article
  • Loading branch information
alphadevx committed Aug 28, 2018
1 parent 50f5553 commit c74e658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Alpha/Controller/ArticleController.php
Expand Up @@ -351,7 +351,7 @@ public function doPUT($request)
$record->loadByAttribute('title', $title);
$params['ActiveRecordID'] = $record->getID();
}
$request->addParams(array('ActiveRecordType' => 'Alpha\Model\Article', 'ActiveRecordID' => isset($params['ActiveRecordID'])));
$request->addParams(array('ActiveRecordType' => 'Alpha\Model\Article', 'ActiveRecordID' => $params['ActiveRecordID']));
$response = parent::doPUT($request);

if ($this->getNextJob() != '') {
Expand Down

0 comments on commit c74e658

Please sign in to comment.