Skip to content
Snippets Groups Projects
Unverified Commit 820c3d83 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2890514 by quietone, vomitHatSteve, heddn:...

Issue #2890514 by quietone, vomitHatSteve, heddn: upgrade_d6_imagecache_presets fails if blank "action" is enountered
parent bb3791d9
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -20,6 +20,9 @@ public function transform($value, MigrateExecutableInterface $migrate_executable
$effects = [];
foreach ($row->getSourceProperty('actions') as $action) {
if (empty($action['action'])) {
continue;
}
$id = preg_replace('/^imagecache/', 'image', $action['action']);
if ($id === 'image_crop') {
......
......@@ -10645,6 +10645,14 @@
'action' => 'imagecache_rotate',
'data' => 'a:3:{s:7:"degrees";s:2:"55";s:6:"random";i:0;s:7:"bgcolor";s:0:"";}',
))
->values(array(
'actionid' => '7',
'presetid' => '2',
'weight' => '0',
'module' => 'imagecache',
'action' => '',
'data' => 'a:3:{s:7:"degrees";s:2:"55";s:6:"random";i:0;s:7:"bgcolor";s:0:"";}',
))
->execute();
$connection->schema()->createTable('imagecache_preset', array(
'fields' => array(
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment