From 2a68e3daf297f4fe4dce3b7ecbdcec35c68a1821 Mon Sep 17 00:00:00 2001 From: Lucas Laurent Date: Mon, 29 Jan 2024 15:02:15 +0100 Subject: [PATCH] fix: add missing text type for json usage --- lib/equal/orm/ObjectManager.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/equal/orm/ObjectManager.class.php b/lib/equal/orm/ObjectManager.class.php index 6e6e3ba36..5c50f0583 100644 --- a/lib/equal/orm/ObjectManager.class.php +++ b/lib/equal/orm/ObjectManager.class.php @@ -164,6 +164,7 @@ class ObjectManager extends Service { 'markup/html' => 'string(64000)', // 64k chars html 'text/html' => 'string(64000)', 'text/plain' => 'string(64000)', // 64k chars text + 'text/json' => 'string(64000)', // 64k chars json 'email' => 'string(255)', 'phone' => 'string(20)' ]; @@ -1283,6 +1284,7 @@ public function validate($class, $ids, $values, $check_unique=false, $check_requ case 'text': case 'text/plain': case 'text/html': + case 'text/json': $type = 'text'; break; }