Browse Source

No need for the plugin to be enabled when changing its license key

Fixes #4525
pull/6412/head
Brandon Kelly 5 years ago
parent
commit
9f8a0fdeb9
  1. 1
      CHANGELOG-v3.md
  2. 5
      src/services/Plugins.php

1
CHANGELOG-v3.md

@ -22,6 +22,7 @@
- Fixed a bug where Live Preview wouldn’t open after it had been previously closed, if the active target was configured with `refresh: false`. ([#6356](https://github.com/craftcms/cms/issues/6356))
- Fixed a bug where site-specific tests were not able to properly use `craft\test\fixtures\elements\AssetFixture`. ([#6309](https://github.com/craftcms/cms/issues/6309))
- Fixed a PHP error that could occur when using `craft\test\TestMailer` in some scenarios. ([#6259](https://github.com/craftcms/cms/issues/6259))
- Fixed a bug where it wasn’t possible to change a disabled plugin’s license key. ([#4525](https://github.com/craftcms/cms/issues/4525))
## 3.4.27 - 2020-07-03

5
src/services/Plugins.php

@ -1131,11 +1131,6 @@ class Plugins extends Component
*/
public function setPluginLicenseKey(string $handle, string $licenseKey = null): bool
{
if (($plugin = $this->getPlugin($handle)) === null) {
throw new InvalidPluginException($handle);
}
/** @var Plugin $plugin */
// Validate the license key
$normalizedLicenseKey = $this->normalizePluginLicenseKey($licenseKey);

Loading…
Cancel
Save