From 8656c7a6a1c2f9c06663ffc62dbf132f764b0e6f Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 31 May 2019 12:41:28 +0200 Subject: [PATCH] [9.1.08] supprimer maxlength --- core/core.php | 18 ++++++++++-------- core/module/page/view/edit/edit.php | 2 +- module/blog/view/article/article.php | 4 ++-- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/core/core.php b/core/core.php index 2aa3b603..5ba28abc 100644 --- a/core/core.php +++ b/core/core.php @@ -2665,7 +2665,7 @@ class template { 'help' => '', 'id' => $nameId, 'label' => '', - 'maxlength' => '500', + //'maxlength' => '500', 'name' => $nameId, 'type' => 2, 'value' => '' @@ -2693,7 +2693,7 @@ class template { $html .= self::hidden($attributes['id'], [ 'class' => 'inputFileHidden', 'disabled' => $attributes['disabled'], - 'maxlength' => $attributes['maxlength'], + //'maxlength' => $attributes['maxlength'], 'value' => $attributes['value'] ]); // Champ d'upload @@ -2718,7 +2718,9 @@ class template { ', $attributes['class'], $attributes['disabled'] ? 'disabled' : '', - helper::sprintAttributes($attributes, ['class', 'extensions', 'type', 'maxlength']) + helper::sprintAttributes($attributes, ['class', 'extensions', 'type']) + //helper::sprintAttributes($attributes, ['class', 'extensions', 'type', 'maxlength']) + ); $html .= self::button($attributes['id'] . 'Delete', [ 'class' => 'inputFileDelete', @@ -2779,7 +2781,7 @@ class template { 'class' => '', 'noDirty' => false, 'id' => $nameId, - 'maxlength' => '500', + //'maxlength' => '500', 'name' => $nameId, 'value' => '' ], $attributes); @@ -2849,7 +2851,7 @@ class template { 'help' => '', 'id' => $nameId, 'label' => '', - 'maxlength' => '500', + //'maxlength' => '500', 'name' => $nameId, 'placeholder' => '', 'readonly' => false, @@ -2912,7 +2914,7 @@ class template { 'help' => '', 'id' => $nameId, 'label' => '', - 'maxlength' => '500', + //'maxlength' => '500', 'name' => $nameId, 'placeholder' => '', 'readonly' => false @@ -3109,7 +3111,7 @@ class template { 'help' => '', 'id' => $nameId, 'label' => '', - 'maxlength' => '500', + //'maxlength' => '500', 'name' => $nameId, 'placeholder' => '', 'readonly' => false, @@ -3162,7 +3164,7 @@ class template { 'help' => '', 'id' => $nameId, 'label' => '', - 'maxlength' => '500000', + //'maxlength' => '500', 'name' => $nameId, 'readonly' => false, 'value' => '' diff --git a/core/module/page/view/edit/edit.php b/core/module/page/view/edit/edit.php index 3efc44c4..bfcef3db 100755 --- a/core/module/page/view/edit/edit.php +++ b/core/module/page/view/edit/edit.php @@ -221,7 +221,7 @@ echo template::formOpen('pageEditForm'); ?> ]); ?> 'Méta-description', - 'maxlength' => '500', + //'maxlength' => '500', 'value' => $this->getData(['page', $this->getUrl(2), 'metaDescription']) ]); ?> diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index c6f03501..2d1c09f8 100644 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -59,8 +59,8 @@ 'Commentaire', - 'maxlength' => '500' + 'label' => 'Commentaire' + //'maxlength' => '500' ]); ?> getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')): ?>