mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-11 17:18:42 +00:00
fix tests
This commit is contained in:
parent
bb50a4c218
commit
33452075ab
|
|
@ -281,10 +281,11 @@ final class ApiController extends Controller
|
|||
MediaMapper::create()->execute($media);
|
||||
EditorDocMapper::writer()->createRelationTable('media', [$media->getId()], $doc->getId());
|
||||
|
||||
$ref = new Reference();
|
||||
$ref->name = $media->name;
|
||||
$ref->source = new NullMedia($media->getId());
|
||||
$ref->createdBy = new NullAccount($request->header->account);
|
||||
$ref = new Reference();
|
||||
$ref->name = $media->name;
|
||||
$ref->source = new NullMedia($media->getId());
|
||||
$ref->createdBy = new NullAccount($request->header->account);
|
||||
|
||||
$ref->setVirtualPath($accountPath = '/Accounts/' . $account->getId() . ' ' . $account->login . '/Editor/' . $doc->createdAt->format('Y') . '/' . $doc->createdAt->format('m') . '/' . $doc->getId());
|
||||
|
||||
ReferenceMapper::create()->execute($ref);
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<form id="fEditor" method="<?= $isNewDoc ? 'PUT' : 'POST'; ?>" action="<?= UriFactory::build('{/api}editor?{?}&csrf={$CSRF}'); ?>">
|
||||
<div class="ipt-wrap">
|
||||
<div class="ipt-first"><input name="title" type="text" class="wf-100" value="<?= $doc->title; ?>"></div>
|
||||
<div class="ipt-second"><input type="submit" value="<?= $this->getHtml('Save'); ?>"></div>
|
||||
<div class="ipt-second"><input type="submit" value="<?= $this->getHtml('Save'); ?>" name="save-editor"></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -65,7 +65,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<form>
|
||||
<table class="layout">
|
||||
<tr><td colspan="2"><label><?= $this->getHtml('Permission'); ?></label>
|
||||
<tr><td><select>
|
||||
<tr><td><select name="permission">
|
||||
<option>
|
||||
</select>
|
||||
<tr><td colspan="2"><label><?= $this->getHtml('GroupUser'); ?></label>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
// Modules/tests
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user