mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ class InputWithLabel extends UIBlock
|
||||
*/
|
||||
public function HasDescription(): bool
|
||||
{
|
||||
return utils::StrLen($this->sDescription) > 0;
|
||||
return utils::IsNotNullOrEmptyString($this->sDescription);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user