From fb5f9db62e2987661c13ec3b54ea74ddfbfb5e2a Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 20 Jan 2021 12:56:06 -0800 Subject: [PATCH] Removed truncate table from user_extended test. --- e107_core/shortcodes/batch/usersettings_shortcodes.php | 4 ++++ e107_tests/tests/unit/e107_user_extendedTest.php | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/e107_core/shortcodes/batch/usersettings_shortcodes.php b/e107_core/shortcodes/batch/usersettings_shortcodes.php index 5c0ac9075..a25745eea 100755 --- a/e107_core/shortcodes/batch/usersettings_shortcodes.php +++ b/e107_core/shortcodes/batch/usersettings_shortcodes.php @@ -394,6 +394,10 @@ class usersettings_shortcodes extends e_shortcode { $this->loadUECatData(); } + if(empty($this->fieldInfo)) + { + $this->loadUEFieldData(); + } $catList = $this->catInfo; diff --git a/e107_tests/tests/unit/e107_user_extendedTest.php b/e107_tests/tests/unit/e107_user_extendedTest.php index 11d38333a..c5872c5db 100644 --- a/e107_tests/tests/unit/e107_user_extendedTest.php +++ b/e107_tests/tests/unit/e107_user_extendedTest.php @@ -117,6 +117,7 @@ ); // clear the table. + /* $sql = e107::getDb(); $fieldCount = (int) $sql->count('user_extended_struct'); @@ -126,7 +127,7 @@ $sql->truncate('user_extended_struct'); $this->ue->init(); // reload the extended fields from db. } - +*/ // Add a field of each type. foreach($this->structTypes as $k=> $v)