Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIv4 - Remove unnecessary class override (handled by generic) #20173

Merged
merged 1 commit into from
Apr 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions Civi/Api4/Action/CustomValue/Replace.php

This file was deleted.

4 changes: 2 additions & 2 deletions Civi/Api4/CustomValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ public static function delete($customGroup, $checkPermissions = TRUE) {
/**
* @param string $customGroup
* @param bool $checkPermissions
* @return Action\CustomValue\Replace
* @return Generic\BasicReplaceAction
* @throws \API_Exception
*/
public static function replace($customGroup, $checkPermissions = TRUE) {
return (new Action\CustomValue\Replace($customGroup, __FUNCTION__))
return (new Generic\BasicReplaceAction("Custom_$customGroup", __FUNCTION__, ['id', 'entity_id']))
->setCheckPermissions($checkPermissions);
}

Expand Down