aboutsummaryrefslogtreecommitdiff
path: root/app/view
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-04-29 02:23:29 +0200
committervincent-peugnet <v.peugnet@free.fr>2020-04-29 02:23:29 +0200
commit7370dee913a63a2f7d4bc09bd4e5605eac2eb382 (patch)
tree950a1fc6997daf4a3e3aae778ca3ed6f7f835ede /app/view
parent3075127e848150da8b8d19b45325460346c415c6 (diff)
downloadwcms-7370dee913a63a2f7d4bc09bd4e5605eac2eb382.tar.gz
wcms-7370dee913a63a2f7d4bc09bd4e5605eac2eb382.zip
fix bookmark construction in user
fix colortag file creation by fixing fn access media
Diffstat (limited to 'app/view')
-rw-r--r--app/view/templates/media.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/view/templates/media.php b/app/view/templates/media.php
index d0caaf2..ea87fba 100644
--- a/app/view/templates/media.php
+++ b/app/view/templates/media.php
@@ -140,8 +140,8 @@ $this->layout('layout', ['title' => 'media', 'stylesheets' => [$css . 'home.css'
<input type="hidden" name="path" value="<?= $media->path() ?>">
<input type="hidden" name="oldid" value="<?= $media->id() ?>">
<input type="hidden" name="oldextension" value="<?= $media->extension() ?>">
- <input type="text" name="newid" value="<?= $media->id() ?>" id="newid" maxlength="<?= Wcms\Model::MAX_ID_LENGTH ?>">
- <input type="text" name="newextension" value="<?= $media->extension() ?>" id="" style="width: 30px" maxlength="16">
+ <input type="text" name="newid" value="<?= $media->id() ?>" id="newid" maxlength="<?= Wcms\Model::MAX_ID_LENGTH ?>" minlength="1" required>
+ <input type="text" name="newextension" value="<?= $media->extension() ?>" id="" style="width: 30px" maxlength="16" minlength="1" required>
<input type="submit" value="rename">
</form>
</details>