Fix bugs during demo app set up

This commit is contained in:
Dennis Eichhorn 2019-05-25 11:16:44 +02:00
parent c776741885
commit e421fd2cb9
2 changed files with 15 additions and 1 deletions

View File

@ -82,6 +82,18 @@ class Department implements ArrayableInterface, \JsonSerializable
*/
protected $descriptionRaw = '';
/**
* Constructor
*
* @param string $name Department name
*
* @since 1.0.0
*/
public function __construct(string $name = '')
{
$this->setName($name);
}
/**
* Get id
*

View File

@ -42,7 +42,9 @@ echo $this->getData('nav')->render(); ?>
$unit->getDescriptionRaw(),
$unit->getDescription()
); ?>
<tr><td><input id="iSubmit" name="submit" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
<tr><td>
<input id="iUnitId" name="id" type="hidden" value="<?= (int) $unit->getId(); ?>">
<input id="iSubmit" name="submit" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
</table>
</form>
</div>