-
Notifications
You must be signed in to change notification settings - Fork 21
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
Hide GTIN
field for new installs make readonly for existing installs
#2622
Merged
puntope
merged 22 commits into
add/support-core-gtin-field
from
update/2615-hide-gtin-for-new-users-make-readonly-for-exisitng
Oct 19, 2024
Merged
Changes from 9 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a32ce73
Add method to Input to disable field
martynmjones 5f4d2f8
Add Utilities trait to Input class and add readonly setting
martynmjones 7384a0a
Add utility to test if extension was installed after a specific date
martynmjones 2893750
Add functionality to disable form attribute
martynmjones 37edb29
Disable or make GTIN field readonly depending on when GLA was install…
martynmjones 3c5007c
Update conditional restrictions
martynmjones 44ae293
phpcs fix
martynmjones 43a76c3
Add option to track version at initial install
martynmjones 34a858c
Rely on initial install version to restrict GTIN field
martynmjones 91fc9f0
Remove unused utility
puntope 1e3c808
Tweak names
puntope e6d52b7
Tweak names
puntope fcaca2e
Tweak names and logic
puntope 29e2417
Add tests
puntope 2e1f800
Merge branch 'develop' into update/2615-hide-gtin-for-new-users-make-…
puntope b29ce70
Remove dupl. tests
puntope 4e8fc0d
Merge branch 'add/support-core-gtin-field' into update/2615-hide-gtin…
puntope 475711c
PHPCS
puntope 9340831
Tweak tests
puntope d677d3d
Tweak tests
puntope fa973aa
Add types for method arguments
puntope a2c3654
Tweak options logic
puntope File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not really necessary since we don't do it in most other classes. But in theory we support PHP 7.4+ which means we can declare type for class properties. Just looks odd to set the type only in the doc-block and not actually restrict it in the class.
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.
The reason I didn't do it is because the rest of the files (and other files like this one) have not the type set neither. So I bet for consistency in regards this topic.