N°2250 - DisplayObject with ormLinkSet ignore Removed

This commit is contained in:
Eric Espie
2023-05-03 14:39:14 +02:00
parent 5a856f96eb
commit 4f6e74a3ee
10 changed files with 101 additions and 39 deletions

View File

@@ -81,6 +81,8 @@ class Set extends AbstractInput
/** @var bool $bHasError Error flag */
private bool $bHasError;
private ?string $sInitialValue = null;
/**
* Constructor.
*
@@ -424,4 +426,23 @@ class Set extends AbstractInput
{
return $this->bHasError;
}
/**
* @return string
*/
public function GetInitialValue(): string
{
if (is_null($this->sInitialValue)) {
return $this->GetValue();
}
return $this->sInitialValue;
}
/**
* @param string $sInitialValue
*/
public function SetInitialValue(string $sInitialValue): void
{
$this->sInitialValue = $sInitialValue;
}
}