Merge remote-tracking branch 'origin/develop' into feature/4517-from-dev

# Conflicts:
#	CONTRIBUTING.md
#	composer.lock
#	core/designdocument.class.inc.php
#	lib/composer/installed.json
#	lib/composer/installed.php
This commit is contained in:
Molkobain
2022-07-28 10:30:25 +02:00
246 changed files with 19028 additions and 20326 deletions

View File

@@ -424,11 +424,11 @@ class ButtonUIBlockFactory extends AbstractUIBlockFactory
$oButton->SetActionType($sActionType)
->SetColor($sColor);
if (utils::StrLen($sValue) > 0) {
if (utils::IsNotNullOrEmptyString($sValue)) {
$oButton->SetValue($sValue);
}
if (utils::StrLen($sName) > 0) {
if (utils::IsNotNullOrEmptyString($sName)) {
$oButton->SetName($sName);
}

View File

@@ -135,7 +135,7 @@ class InputWithLabel extends UIBlock
*/
public function HasDescription(): bool
{
return utils::StrLen($this->sDescription) > 0;
return utils::IsNotNullOrEmptyString($this->sDescription);
}
}