mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 18:18:46 +02:00
N°2250 - DisplayObject with ormLinkSet ignore Removed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user