Quantcast
Channel: BugNET Issue Tracker (Moved to GitHub)
Viewing all articles
Browse latest Browse all 2179

Commented Issue: Renaming a custom field changed all issue values [171]

$
0
0
I have a drop down list custom field that has contains a list of all my clients. Every issue is required to have a client assigned. I went and renamed one field in the drop down list, and all my issues have been reassigned to that custom field. I now have to go through ALL of my issues and reassign them to the right clients!
Comments: I believe I found this issue in the update stored procedure. If the old selection value is not equal to the new custom field selection value (has been updated) it updates ALL values for that custom field. ``` IF (@OldSelectionValue != @CustomFieldSelectionValue) BEGIN UPDATE BugNet_ProjectCustomFieldValues SET CustomFieldValue = @CustomFieldSelectionValue WHERE CustomFieldId = @CustomFieldId END ``` It should only modify values that had the "OldSelectionValue" like below __(still to be tested)__ ``` IF (@OldSelectionValue != @CustomFieldSelectionValue) BEGIN UPDATE BugNet_ProjectCustomFieldValues SET CustomFieldValue = @CustomFieldSelectionValue WHERE CustomFieldId = @CustomFieldId AND CustomFieldValue = @OldSelectionValue END ```

Viewing all articles
Browse latest Browse all 2179

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>