From 6b7c83199182ce82b8f2f924e202d9eaf70dc07d Mon Sep 17 00:00:00 2001
From: ezsh <ezsh.junk@gmail.com>
Date: Mon, 27 May 2019 21:46:47 +0200
Subject: [PATCH] Ensure 'markings' RA settting exists

Fixes #774.
---
 src/js/datatypeCleanupJS.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/js/datatypeCleanupJS.js b/src/js/datatypeCleanupJS.js
index 4bc818e27db..798b625e242 100644
--- a/src/js/datatypeCleanupJS.js
+++ b/src/js/datatypeCleanupJS.js
@@ -2018,7 +2018,7 @@ App.Entity.Utils.RARuleDatatypeCleanup = function() {
 
 		function ensureProps(obj, props) {
 			props.forEach(prop => {
-				if (!obj.hasOwnProperty(prop) || obj[prop] === undefined) {
+				if (obj[prop] === undefined) {
 					obj[prop] = null;
 				}
 			});
@@ -2050,7 +2050,7 @@ App.Entity.Utils.RARuleDatatypeCleanup = function() {
 		}
 
 		ensureProps(set, [
-			'haircuts', 'label', 'removeLabel', 'skinColor',
+			'haircuts', 'label', 'removeLabel', 'skinColor', 'markings',
 			'earwear', 'toyHole', 'pornFeed', 'legAccessory', 'hyper_drugs'
 		]);
 
-- 
GitLab