Skip to content
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

Bug#268 fix: Call multiple request while creating type items if AutoSave enabled in UCM Type #269

Open
wants to merge 3 commits into
base: release-1.2.4
Choose a base branch
from

Conversation

pravinTek
Copy link
Contributor

Also showing error message on input focus/blur

… type items and showing error message on input focus/blur. this issue generated if Auto Save enabled
@pravinTek pravinTek changed the base branch from master to release-1.2.3 December 4, 2019 07:17
@@ -31,15 +31,23 @@ jQuery(window).load(function()
jQuery("#item-form").on("change select", ":input", function(){
if (tjUcmCurrentAutoSaveState)
{
tjUcmItemForm.onUcmFormChange(this);
// Call function if field name & value exist in request data
if (jQuery(this).attr('name') !='' && jQuery(this).attr('name') != undefined && jQuery(this).val() !='' && jQuery(this).val() != undefined)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pravinTek Will this work, if a user has set some value for a field and later, is updated to blank?
jQuery(this).val() !=''
If a user sets fields value to blank then its value should be saved as balnk

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed logic and restrict function call for required field only

@ankush-maherwal ankush-maherwal changed the base branch from release-1.2.3 to release-1.2.4 December 9, 2019 06:53
@pravinTek pravinTek changed the title Bug#268 fix: Created multiple record entries in DB while creating type items if AutoSave enabled in UCM Type Bug#268 fix: Call multiple request while creating type items if AutoSave enabled in UCM Type Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants