- Issue created by @martinpe
I have a really weird problem.
I have added a new custom migration called "csd_import" and when I run the migration import with drush mim csd_import
, then the the notice progressMessage() method returns an empty notice like so
[notice]
instead of someting like this
[notice] Processed 2 items (0 created, 2 updated, 0 failed, 0 ignored) - done with 'csd_import'
I have found out, that there is the single quotes (') surrounding the @name
cause a problem within this code block:
if ($done) {
$singular_message = "Processed 1 item (@created created, @updated updated, @failures failed, @ignored ignored) - done with '@name'";
$plural_message = "Processed @numitems items (@created created, @updated updated, @failures failed, @ignored ignored) - done with '@name'";
}
else {
$singular_message = "Processed 1 item (@created created, @updated updated, @failures failed, @ignored ignored) - continuing with '@name'";
$plural_message = "Processed @numitems items (@created created, @updated updated, @failures failed, @ignored ignored) - continuing with '@name'";
}
once I remove all single quotes as you can see in the following code block, it works.
if ($done) {
$singular_message = "Processed 1 item (@created created, @updated updated, @failures failed, @ignored ignored) - done with @name";
$plural_message = "Processed @numitems items (@created created, @updated updated, @failures failed, @ignored ignored) - done with @name";
}
else {
$singular_message = "Processed 1 item (@created created, @updated updated, @failures failed, @ignored ignored) - continuing with @name";
$plural_message = "Processed @numitems items (@created created, @updated updated, @failures failed, @ignored ignored) - continuing with @name";
}
I have absolutely no idea what causes this problem.
Has anyody ever had that problem?
I am using:
Active
6.0
Code