Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soft_length_limit
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
soft_length_limit
Commits
e10a7f8b
Commit
e10a7f8b
authored
12 years ago
by
Arne Jørgensen
Browse files
Options
Downloads
Patches
Plain Diff
Only set soft length limit if title has a max length.
parent
fd9c53e3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
soft_length_limit.module
+1
-1
1 addition, 1 deletion
soft_length_limit.module
with
1 addition
and
1 deletion
soft_length_limit.module
+
1
−
1
View file @
e10a7f8b
...
...
@@ -72,7 +72,7 @@ function soft_length_limit_field_attach_form($entity_type, $entity, &$form, &$fo
}
}
if
(
isset
(
$form
[
'title'
]))
{
if
(
isset
(
$form
[
'title'
])
and
isset
(
$form
[
'title'
][
'#maxlength'
])
)
{
$form
[
'title'
][
'#attributes'
][
'class'
][]
=
'soft-length-limit'
;
$form
[
'title'
][
'#attributes'
][
'data-soft-length-limit'
]
=
$form
[
'title'
][
'#maxlength'
];
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment