Skip to content

Commit

Permalink
Add missing default config to database
Browse files Browse the repository at this point in the history
  • Loading branch information
Curtis Conard authored and cconard96 committed Mar 16, 2021
1 parent e808189 commit 14cbc7d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Screenshot

## [1.1.3]
- Added missing default config values to the database.
The missing formats caused the screenshot upload to fail silently unless you saved or changed the format option.

## [1.1.2]
- Add locales
- en_GB
Expand Down
8 changes: 8 additions & 0 deletions inc/migration.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,12 @@ private function apply_1_1_0_migration()
{
$this->glpiMigration->addRight('plugin_screenshot_recording', CREATE);
}

private function apply_1_1_3_migration()
{
// Add previously missing default format
$this->glpiMigration->addConfig([
'screenshot_format' => 'image/png'
], 'plugin:screenshot');
}
}
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
--------------------------------------------------------------------------
*/

define('PLUGIN_SCREENSHOT_VERSION', '1.1.2');
define('PLUGIN_SCREENSHOT_VERSION', '1.1.3');
define('PLUGIN_SCREENSHOT_MIN_GLPI', '9.5.0');
define('PLUGIN_SCREENSHOT_MAX_GLPI', '9.6.0');

Expand Down

0 comments on commit 14cbc7d

Please sign in to comment.