Skip to content

Commit

Permalink
ENH Update code to reflect changes to LeftAndMain
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 17, 2024
1 parent 3b49fb0 commit 1948be8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/CampaignAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function getClientConfig()
'url' => $this->Link('removeCampaignItem/:id/:itemId'),
'method' => 'post'
],
'treeClass' => $this->config()->get('tree_class')
'treeClass' => $this->getModelClass()
]);
}

Expand Down Expand Up @@ -235,7 +235,7 @@ protected function getListResource()
$items = $this->getListItems();
$count = $items->count();
/** @var string $treeClass */
$treeClass = $this->config()->get('tree_class');
$treeClass = $this->getModelClass();
$hal = [
'count' => $count,
'total' => $count,
Expand Down
2 changes: 1 addition & 1 deletion src/CampaignAdminList.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getSchemaDataDefaults()

// Get endpoints from admin
$admin = CampaignAdmin::singleton();
$data['data']['recordType'] = $admin->config()->uninherited('tree_class');
$data['data']['recordType'] = $admin->getModelClass();
$oneSetAction = $admin->Link("set") . "/:id";
$setsAction = $admin->Link("sets");
$schemaEndpoint = $admin->Link("schema") . "/DetailEditForm";
Expand Down

0 comments on commit 1948be8

Please sign in to comment.