Merge pull request #3319 from desyncr/bugfix/missing-default-author-value-validation
Fix missing validation on default value for author inputpull/3357/head
commit
4bdd7adc55
|
@ -228,10 +228,7 @@ EOT
|
||||||
$output,
|
$output,
|
||||||
$dialog->getQuestion('Author', $author),
|
$dialog->getQuestion('Author', $author),
|
||||||
function ($value) use ($self, $author) {
|
function ($value) use ($self, $author) {
|
||||||
if (null === $value) {
|
$value = $value ?: $author;
|
||||||
return $author;
|
|
||||||
}
|
|
||||||
|
|
||||||
$author = $self->parseAuthorString($value);
|
$author = $self->parseAuthorString($value);
|
||||||
|
|
||||||
return sprintf('%s <%s>', $author['name'], $author['email']);
|
return sprintf('%s <%s>', $author['name'], $author['email']);
|
||||||
|
|
Loading…
Reference in New Issue