Skip to content

Commit

Permalink
DEBUG - if ok, remove todo
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Feb 13, 2024
1 parent 711477d commit 56d0137
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Form/Control/DropdownCascade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ protected function init(): void
$this->cascadeFrom = $this->form->getControl($this->cascadeFrom);
}

$this->cascadeFrom->entityField->getField()->type = WrappedIdType::NAME; // TODO asap
if ($this->cascadeFrom->entityField->getField()->type !== WrappedIdType::NAME) {
throw new \Error('unexpected type');
}

$cascadeFromValue = $this->getApp()->hasRequestPostParam($this->cascadeFrom->name)
? $this->getApp()->uiPersistence->typecastAttributeLoadField($this->cascadeFrom->entityField->getField(), $this->getApp()->getRequestPostParam($this->cascadeFrom->name))
Expand Down

0 comments on commit 56d0137

Please sign in to comment.