Skip to content

Commit

Permalink
Merge pull request #348 from phptek/non-upgraded-call-to-db
Browse files Browse the repository at this point in the history
FIX: Substituted legacy DataObject::db() for DataObject::getSchema()
  • Loading branch information
robbieaverill authored Feb 14, 2018
2 parents 522a3ea + ef40f5d commit 28edb0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/NotifyUsersWorkflowAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function getContextFields(DataObject $target)
return $result;
}

$fields = $target->db();
$fields = $target->getSchema()->fieldSpecs($target);
unset($fields['ID']);

foreach ($fields as $field => $fieldDesc) {
Expand Down

0 comments on commit 28edb0d

Please sign in to comment.