Skip to content
Snippets Groups Projects
Commit 2ecd893a authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: short_description should not be updated with name data

parent b9967d9e
No related branches found
No related tags found
No related merge requests found
Pipeline #7391 passed
......@@ -621,7 +621,7 @@ class ShowSerializer(serializers.HyperlinkedModelSerializer):
instance.description = validated_data.get("description", instance.description)
instance.name = validated_data.get("name", instance.name)
instance.short_description = validated_data.get("name", instance.name)
instance.short_description = validated_data.get("short_description", instance.short_description)
# Only update these fields if the user is privileged, ignore otherwise
if user_is_privileged:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment