Closed (fixed)
Project:
Permissions by Term
Version:
8.x-2.4
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2018 at 13:02 UTC
Updated:
27 Nov 2018 at 13:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jepster_There is no reason for that. So long we have not needed more characters and you are the first with that issue. Do you like to provide a patch?
Comment #3
branislav radovanovic commentedHi Peter first of all than you for this great module it saved me a lot of time. I will submit a patch gladly however I've never done it before nor is my account confirmed yet - not sure if this is a problem? Can you give me some starting points?
Comment #4
jepster_Hi Bane, I am glad to read your feedback! :)
To extend your users file, you can just go into the file permissions_by_term/permissions_by_term.module and check around line 170. There's the array $form['access']['user'] with the size attribute. You can specify the size here, if you need more. Also you can check the Drupal form api for options regarding this field type. See https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21....
A tutorial regarding patch creation via Git, can be found at https://mobilefish.de/creating-patch-git.
You are also welcome to fork the Permissions by Term module and create pull request on Bitbucket (make sure to use the 8.x-2.x Git branch): https://bitbucket.org/peter_majmesku/permissions_by_term/src/8.x-2.x/
The last way (pull request), is the more modern way compared to the old-fashioned Drupal patch creation.
Comment #5
branislav radovanovic commentedHi Peter here's a patch, but I'm kind of stuck on how to fork it on bitbucket?
I've created account there, added my SSH key, clone the repo, made changes and extracted the patch.
Comment #7
jepster_Thanks for the patch. Fixed in release 8.x-2.4. See release note: https://www.drupal.org/project/permissions_by_term/releases/8.x-2.4
Comment #8
jepster_Comment #9
rwam commentedShould be #maxlength, shouldn't it?
Comment #10
rwam commentedAttached updated patch with the spelling fix.
Comment #11
jepster_Outh.. yes. The fix is contained in release version 8.x-2.5.