Skip to content

Commit

Permalink
Merge branch '1.13' into 1
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Apr 26, 2023
2 parents d2cfa28 + c763803 commit 14b1fd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
},
"autoload": {
"psr-4": {
"SilverStripe\\Versioned\\": ["src/", "_legacy/"],
"SilverStripe\\Versioned\\": [
"src/",
"_legacy/"
],
"SilverStripe\\Versioned\\Tests\\": "tests/php/"
}
},
Expand All @@ -41,4 +44,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
2 changes: 1 addition & 1 deletion src/GraphQL/Resolvers/VersionedResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function resolveVersionFields(DataObject $obj, array $args, array
case 'publisher':
return $obj->Publisher();
case 'published':
return $obj->isPublished();
return $obj->WasPublished;
case 'draft':
return $obj->WasDraft;
case 'deleted':
Expand Down

0 comments on commit 14b1fd3

Please sign in to comment.