-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix: validation custom error with asterisk field #6352
Closed
ping-yee
wants to merge
56
commits into
codeigniter4:develop
from
ping-yee:fix-validation-custom-error
Closed
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
c0a782b
fix: add judge if validation fields have asterisk when user want to s…
ping-yee 340c752
test: add test for validation error with asterisk field.
ping-yee 9fc2b7a
cs: run cs-fix and static analysis
ping-yee 4441fd1
feat: add public method to regenerate CSRF token
kenjis 23d71d6
docs: add changelog and note
kenjis f1db96b
docs: the session_id acquisition method that is not described
naente 4a6527a
fix: add a new param in processRules and getErrorMessage function.
ping-yee a8453e2
add: validation testing add label field
ping-yee 3648faa
fix: cs-fixer
ping-yee 4632602
Merge pull request from GHSA-6gch-wjxj-hc2w
MGatner cb71f73
Prep for 4.2.3 release
MGatner 01dac95
Merge pull request #6349 from naente/develop
MGatner 1be14e7
Update CHANGELOG.md
MGatner d77883e
Merge pull request #6353 from codeigniter4/release-4.2.3
MGatner 9c0c695
Merge pull request #6354 from codeigniter4/develop
MGatner 68ad806
docs: add @property to Session
kenjis 55f3c23
docs: add Prefious and Next button
kenjis dc84e94
docs: add upgrade_423 in upgrading.rst
kenjis ab6aa3c
docs: remove space
kenjis a42651b
docs: add missing command prompt
kenjis b2aac31
docs: remove out-of-dated? description
kenjis d75dabd
docs: remove `--prefer-source`
kenjis fa50250
docs: improve description
kenjis d8fe98d
Merge pull request #6355 from kenjis/phpdocs-add-property-to-Session
samsonasik b667425
docs: remove unused directories in Structure
kenjis db1833a
docs: add missing tests directory
kenjis d0f0881
docs: remove `two`
kenjis 23a18eb
Merge pull request #6356 from kenjis/fix-docs-upgrade_423.rst
kenjis 776926f
chore: convert warning into error
kenjis b471880
docs: refactor sample code
kenjis 09bcef4
chore: tweak options
kenjis 416da02
fix: change the declaration of methods according to PSR-12.
ping-yee 2da8ef8
Merge pull request #6357 from kenjis/fix-docs-installing_composer.rst
kenjis d4b0483
docs: fix @param type
kenjis 6d51b2c
fix: Email class may not log an error when it fails to send
kenjis 4511b3f
docs: improve explanation
kenjis cf662be
docs: add missing deprecation
kenjis 1086703
Merge pull request #6359 from kenjis/make-sphinx-warning-to-error
kenjis 4fdffaa
Merge pull request #6363 from kenjis/fix-docs-Forge-createTable
kenjis 9204889
Merge pull request #6362 from kenjis/fix-email-logging
kenjis cb7b565
add : add a description to the changelog.
ping-yee 7c12af8
docs: fix duplicate object description of ...
kenjis 6d3a24b
Merge pull request #6369 from kenjis/fix-docs-sphinx-errors
kenjis 34a1f5b
docs: update explanation for private methods
kenjis f9d93ce
docs: add about initController()
kenjis 00c6596
Merge pull request #6368 from kenjis/fix-docs-controllers.rst
kenjis eb6e943
rebase: reslove conflicts
ping-yee fe010ba
fix: add judge if validation fields have asterisk when user want to s…
ping-yee dba4bee
test: add test for validation error with asterisk field.
ping-yee 713d6bb
cs: run cs-fix and static analysis
ping-yee 748bad7
fix: add a new param in processRules and getErrorMessage function.
ping-yee 3320fdb
add: validation testing add label field
ping-yee c5d8cb2
fix: cs-fixer
ping-yee 9bdf852
fix: change the declaration of methods according to PSR-12.
ping-yee 3b9e662
Merge branch 'fix-validation-custom-error' of https://github.com/ping…
ping-yee fa442b4
add : add a description to the changelog in v4.2.4.
ping-yee 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ jobs: | |
- uses: ammaraskar/[email protected] | ||
with: | ||
docs-folder: user_guide_src | ||
build-command: 'make html SPHINXOPTS="-W --keep-going -w /tmp/sphinx-log"' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
> Documentation guide based on the releases of `4.0.5` and `4.1.0` on January 31, 2021. | ||
> | ||
> Updated for `4.1.6` on December 24, 2021. | ||
> Updated for `4.2.3` on August 6, 2022. | ||
> | ||
> -MGatner | ||
|
||
|
@@ -29,8 +29,9 @@ git clone [email protected]:codeigniter4/CodeIgniter4.git | |
git clone [email protected]:codeigniter4/userguide.git | ||
``` | ||
* Vet the **admin/** folders for any removed hidden files (Action deploy scripts *do not remove these*) | ||
* Merge any Security Advisory PRs in private forks | ||
|
||
## CodeIgniter4 | ||
## Process | ||
|
||
> Note: Most changes that need noting in the User Guide and docs should have been included | ||
> with their PR, so this process assumes you will not be generating much new content. | ||
|
@@ -75,6 +76,7 @@ composer create-project codeigniter4/appstarter release-test | |
cd release-test | ||
composer test && composer info codeigniter4/framework | ||
``` | ||
* publish any Security Advisories that were resolved from private forks | ||
|
||
## User Guide | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ See all the changes. | |
.. toctree:: | ||
:titlesonly: | ||
|
||
v4.2.4 | ||
v4.2.3 | ||
v4.2.2 | ||
v4.2.1 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Version 4.2.4 | ||
############# | ||
|
||
Release Date: Unreleased | ||
|
||
**4.2.4 release of CodeIgniter4** | ||
|
||
.. contents:: | ||
:local: | ||
:depth: 2 | ||
|
||
BREAKING | ||
******** | ||
|
||
- The method signature of ``Validation.php::processRules()`` and ``Validation.php::getErrorMessage()`` have been changed. Both of these methods add new ``$originalField`` parameter. | ||
|
||
Enhancements | ||
************ | ||
|
||
none. | ||
|
||
Changes | ||
******* | ||
|
||
none. | ||
|
||
Deprecations | ||
************ | ||
|
||
none. | ||
|
||
Bugs Fixed | ||
********** | ||
|
||
See the repo's `CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_ for a complete list of bugs fixed. |
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.
Are you really okay with key like
'foo.0.bar'
?It seems a bit difficult to use.
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.
But as I known, validation service change the asterisk field to like
'foo.0.bar'
.As Issue #6245 show that.