@@ -51,7 +51,8 @@ public function __construct(
51
51
*/
52
52
public function categoryPostSchema ($ type = '' , array $ extra = []) {
53
53
if ($ this ->categoryPostSchema === null ) {
54
- $ fields = ['name ' , 'parentCategoryID? ' , 'urlcode ' , 'displayAs? ' , 'customPermissions? ' , 'groupID? ' ];
54
+ $ fields = ['name ' , 'parentCategoryID? ' , 'urlcode ' , 'displayAs? ' , 'customPermissions? ' ,
55
+ 'groupID? ' , 'archived? ' ];
55
56
$ this ->categoryPostSchema = $ this ->schema (
56
57
Schema::parse (array_merge ($ fields , $ extra ))->add ($ this ->schemaWithParent ()),
57
58
'CategoryPost '
@@ -129,7 +130,7 @@ protected function fullSchema() {
129
130
'parentCategoryID:i|n ' => 'Parent category ID. ' ,
130
131
'groupID:i|n ' => 'Group ID. ' ,
131
132
'customPermissions:b ' => 'Are custom permissions set for this category? ' ,
132
- 'isArchived :b ' => 'The archived state of this category. ' ,
133
+ 'archived :b ' => 'The archived state of this category. ' ,
133
134
'urlcode:s ' => 'The URL code of the category. ' ,
134
135
'url:s ' => 'The URL to the category. ' ,
135
136
'displayAs:s ' => [
@@ -551,9 +552,6 @@ public function normalizeOutput(array $dbRecord) {
551
552
if (!empty ($ dbRecord ['Children ' ]) && is_array ($ dbRecord ['Children ' ])) {
552
553
$ dbRecord ['Children ' ] = array_map ([$ this , 'normalizeOutput ' ], $ dbRecord ['Children ' ]);
553
554
}
554
-
555
- $ dbRecord ['isArchived ' ] = $ dbRecord ['Archived ' ];
556
-
557
555
$ schemaRecord = ApiUtils::convertOutputKeys ($ dbRecord );
558
556
return $ schemaRecord ;
559
557
}
0 commit comments