This tool copies a static conversion profile from partner 0 to a given partner, including all its asset params rows.
+
+copyResult): ?>
+
+ escape($this->copyResult['message']); ?>
+copyResult['success']): ?>
+
+
+
+
+
+copyConversionProfileForm; ?>
\ No newline at end of file
diff --git a/alpha/scripts/utils/copyConversionProfile.php b/alpha/scripts/utils/copyConversionProfile.php
index 5a87544cf88..b457992c5ad 100644
--- a/alpha/scripts/utils/copyConversionProfile.php
+++ b/alpha/scripts/utils/copyConversionProfile.php
@@ -21,6 +21,12 @@
$conversionProfileId = $argv[1];
$destPartnerId = $argv[2];
+$destPartner = PartnerPeer::retrieveByPK($destPartnerId);
+if (is_null($destPartner))
+{
+ die("Partner {$destPartnerId} does not exist" . PHP_EOL);
+}
+
$conversionProfile = conversionProfile2Peer::retrieveByPKAndPartnerId($conversionProfileId, 0);
if (is_null($conversionProfile) || $conversionProfile->getStatus() == ConversionProfileStatus::DISABLED)
@@ -48,6 +54,8 @@
{
KalturaLog::debug("Could not copy flavor params {$flavorParamsConversionProfile->getId()} from conversion profile {$conversionProfile->getId()}, exception: {$exception->getMessage()}");
}
+
+ echo "COPY_SUCCESS new_id={$newConversionProfile->getId()} system_name=" . $conversionProfile->getSystemName() . PHP_EOL;
}
catch (Exception $exception)
{
diff --git a/configurations/admin.template.ini b/configurations/admin.template.ini
index f92c445ba2c..13e0dcdd32e 100644
--- a/configurations/admin.template.ini
+++ b/configurations/admin.template.ini
@@ -1344,6 +1344,7 @@ access.user.logout = *
access.user.reset-password = *
access.user.reset-password-link = *
access.index = *
+access.index.copy-conversion-profile = SYSTEM_ADMIN_PUBLISHER_CONFIG
;access.accounts = ps
access.partner.all = SYSTEM_ADMIN_PUBLISHER_BASE