-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#33661] Missing form field attribute "maxlength". #3510
Conversation
@@ -141,6 +155,7 @@ protected function getInput() | |||
$autocomplete = $autocomplete == ' autocomplete="on"' ? '' : $autocomplete; | |||
$autofocus = $this->autofocus ? ' autofocus' : ''; | |||
$spellcheck = $this->spellcheck ? '' : ' spellcheck="false"'; | |||
$maxLength = !empty($this->maxLength) ? ' maxlength="' . $this->maxLength . '"' : ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should not use !empty with maxlength here. If we do we couldn'y set maxLength=0.
use isset in setup method and assign false to maxLength if it is not set. Check rows & columns attributes.
I see. I just use the code from the form field "text". I do not want to change the code of the person, which has done the project “Improve Form Fields”. :) |
LOL, I did that project. If you want I can edit both fields and maybe look others also for similar issues. What you say? |
That will be great! :)
Check Valentin's replay on Joomla!Code Tracker Page 33661. |
placeholder is there. Just it's been called hint |
" All is well — The Travis CI build passed " <- is there anything still left open? I refer to this: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33661 where Valentin says, that not enough testing was done and so it does not get implemented in the next version(s) if you need more code-reviews / testing, i'll be happy to help. |
Travis is the automated testing. It can detect some code errors, but doesn't detect every error. |
I tested the proposed patch, and worked as described for me. So here's a "successful test" for this one :). What's the status for this issue? Maybe would be able to do it into 3.4 if another successful test comes? Thanks! This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3510. |
as stated above this needs some small improvements |
@ITPrism can you implement the changes that was suggsested by @Achal-Aggarwal in the inline comments? So we can move this forward? Thanks 😄 |
I think this issue is fixed already by RTC PR #6460 that will be applied in J!3.5.0 |
I have merged #6460. If there are any futher issues can you open a new PR please? |
This patch adds the attribute "maxlength" to the form field "textarea".
Joomla!Code Tracker Page:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33661