A free open source IT asset/license management system
add fix to handling blank emails, add notes on things that look weird
Brady Wetherington84940f12c5f2
diff --git a/app/Models/SnipeSCIMConfig.php b/app/Models/SnipeSCIMConfig.phpindex a78bd6632c..8bd09f963c 100644--- a/app/Models/SnipeSCIMConfig.php+++ b/app/Models/SnipeSCIMConfig.php@@ -195,7 +195,7 @@ class SnipeSCIMConfig}}})->withSubAttributes(- eloquent('value', 'email')->ensure('email'),+ eloquent('value', 'email')->ensure('email', 'nullable'), //Weird, this 'needs' nullable to work?new Constant('type', 'work'),new Constant('primary', true)->ensure('boolean'))->ensure('array')@@ -259,9 +259,8 @@ class SnipeSCIMConfigparent::patch($operation, $value, $object, $path, $removeIfNotSet);}})->withSubAttributes(- new Constant('value', 'email')->ensure('string'),- new Constant('type', 'other'),- new Constant('primary', true)->ensure('boolean'),+ new Constant('value', 'email')->ensure('string'), //FIXME - this is WRONG!!!!!!+ new Constant('type', 'other'), // FIXME uh, *also* wrong?!)->ensure('array')->setMultiValued(true),