Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
Madhuk
vtigercrm
Commits
adf48f73
Commit
adf48f73
authored
10 months ago
by
Prasad
Browse files
Options
Downloads
Patches
Plain Diff
Added fix to handle empty check on webform values
parent
874f2686
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/vtiger/modules/Webforms/settings/actions/Save.php
+2
-1
2 additions, 1 deletion
pkg/vtiger/modules/Webforms/settings/actions/Save.php
with
2 additions
and
1 deletion
pkg/vtiger/modules/Webforms/settings/actions/Save.php
+
2
−
1
View file @
adf48f73
...
...
@@ -41,7 +41,8 @@ class Settings_Webforms_Save_Action extends Settings_Vtiger_Index_Action {
if
(
!
$fieldValue
)
{
$fieldValue
=
$fieldModel
->
get
(
'defaultvalue'
);
}
if
(
$fieldModel
->
isMandatory
()
&&
empty
(
trim
(
$fieldValue
))){
$isValueEmpty
=
is_array
(
$fieldValue
)
?
false
:
empty
(
trim
(
$fieldValue
));
/* array in-case of round-robin user list */
if
(
$fieldModel
->
isMandatory
()
&&
$isValueEmpty
){
$label
=
vtranslate
(
$fieldModel
->
get
(
'label'
),
$qualifiedModuleName
);
throw
new
AppException
(
vtranslate
(
'LBL_MANDATORY_FIELD_MISSING'
,
'Vtiger'
,
$label
));
}
else
if
(
$fieldName
==
'targetmodule'
&&
!
array_key_exists
(
$fieldValue
,
$supportedModules
)){
...
...
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