From a24ecb2401414794a4ee2a3f46e0203517eee9e5 Mon Sep 17 00:00:00 2001
From: Chris Jellen <64814231+CDJellen@users.noreply.github.com>
Date: Wed, 13 Oct 2021 15:26:44 -0700
Subject: [PATCH 1/7] Possible fix to Issue #2315 (affects
`templates/abilities.html`)
The REST API expects an ability object in which the cleanup field is an array (list) of strings. Currently, the "Create Ability" UI saves the cleanup command as a string, causing an Unprocessable Entity response status code (422) when executing the PUT request in API v2. This commit includes a slight change to the cleanup field in the Create Ability modal which converts a line-break separated list of cleanup commands to the correct type. The net effect of the change is to enable users to create and edit abilities which include cleanup commands through the UI and API v2.
---
templates/abilities.html | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/templates/abilities.html b/templates/abilities.html
index 5ad17528f..7e82b914b 100644
--- a/templates/abilities.html
+++ b/templates/abilities.html
@@ -302,9 +302,14 @@