Merge branch 'dev_0.1' into dev_0.1

This commit is contained in:
Daniel Seifert 2022-08-07 00:57:40 +02:00
commit 26ea7b4e70
Signed by: DanielS
GPG Key ID: 6A513E13AEE66170

View File

@ -147,6 +147,21 @@ class d3linkmobility_ordermanager_action extends d3ordermanager_action_abstract
return $blExpected ? $return : false === $return;
}
/**
* @param bool $blExpected
*
* @return bool
*/
protected function hasRequiredValuesNoSource(bool $blExpected): bool
{
$source = (string) $this->getManager()->getValue( 'sLinkMobilityMessageFromSource' );
$return = strlen(trim($source)) &&
in_array(trim($source), [self::SOURCE_CMS, self::SOURCE_TEMPLATE]);
return $blExpected ? $return : false === $return;
}
/**
* @param bool $blExpected
*