Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
a94c7a99
Commit
a94c7a99
authored
2 years ago
by
nicolas lebozec
Browse files
Options
Downloads
Patches
Plain Diff
FIX #23885 TIME 0:30 Change the ! empty by a notEmpty (intType)
parent
4242c6a4
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
src/app/resource/controllers/ResourceControlController.php
+1
-1
1 addition, 1 deletion
src/app/resource/controllers/ResourceControlController.php
with
1 addition
and
1 deletion
src/app/resource/controllers/ResourceControlController.php
+
1
−
1
View file @
a94c7a99
...
...
@@ -378,7 +378,7 @@ class ResourceControlController
foreach
(
$indexingModelFields
as
$indexingModelField
)
{
if
(
strpos
(
$indexingModelField
[
'identifier'
],
'indexingCustomField_'
)
!==
false
)
{
$customFieldId
=
explode
(
'_'
,
$indexingModelField
[
'identifier'
])[
1
];
if
(
$indexingModelField
[
'mandatory'
]
&&
empty
(
$body
[
'customFields'
][
$customFieldId
]))
{
if
(
$indexingModelField
[
'mandatory'
]
&&
Validator
::
intType
()
->
notEmpty
()
->
validate
(
$body
[
'customFields'
][
$customFieldId
]))
{
return
[
'errors'
=>
"Body customFields[
{
$customFieldId
}
] is empty"
];
}
if
(
!
empty
(
$body
[
'customFields'
][
$customFieldId
]))
{
...
...
This diff is collapsed.
Click to expand it.
Hamza HRAMCHI
@hamza.hramchi
mentioned in commit
493192d5
·
1 year ago
mentioned in commit
493192d5
mentioned in commit 493192d5c16ce774e7c2732d46356243771efebc
Toggle commit list
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