Skip to content

Commit 053a000

Browse files
committed
fix: acpt update cpt icon issue
1 parent 931626c commit 053a000

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

frontend-dev/src/components/AllIntegrations/ACPT/ACPTIntegLayout.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ export default function ACPTIntegLayout({
115115
)}
116116

117117
{acptConf?.module &&
118-
(acptConf.module === 'create_cpt' || acptConf.module === 'create_option_page') &&
118+
['create_cpt', 'update_cpt', 'create_option_page', 'update_option_page'].includes(
119+
acptConf.module
120+
) &&
119121
!isLoading && (
120122
<div className="flx">
121123
<b className="wdt-200 d-in-b">{__('Select Icon:', 'bit-integrations')}</b>

includes/Actions/ACPT/RecordApiHelper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ public function updateCPT($finalData, $fieldValues)
7272

7373
unset($finalData['slug']);
7474

75+
$finalData['icon'] = $this->integrationDetails->icon;
76+
7577
$apiEndpoint = $this->apiUrl . '/cpt/' . $slug;
7678
$finalData = ACPTHelper::prepareCPTData($finalData, $fieldValues, $this->integrationDetails);
7779

0 commit comments

Comments
 (0)