1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Removed truncate table from user_extended test.

This commit is contained in:
Cameron
2021-01-20 12:56:06 -08:00
parent 18546311e1
commit fb5f9db62e
2 changed files with 6 additions and 1 deletions

View File

@@ -394,6 +394,10 @@ class usersettings_shortcodes extends e_shortcode
{ {
$this->loadUECatData(); $this->loadUECatData();
} }
if(empty($this->fieldInfo))
{
$this->loadUEFieldData();
}
$catList = $this->catInfo; $catList = $this->catInfo;

View File

@@ -117,6 +117,7 @@
); );
// clear the table. // clear the table.
/*
$sql = e107::getDb(); $sql = e107::getDb();
$fieldCount = (int) $sql->count('user_extended_struct'); $fieldCount = (int) $sql->count('user_extended_struct');
@@ -126,7 +127,7 @@
$sql->truncate('user_extended_struct'); $sql->truncate('user_extended_struct');
$this->ue->init(); // reload the extended fields from db. $this->ue->init(); // reload the extended fields from db.
} }
*/
// Add a field of each type. // Add a field of each type.
foreach($this->structTypes as $k=> $v) foreach($this->structTypes as $k=> $v)