1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 23:36:29 +02:00

Issue #539 - validation of user-extended elements will automatically switch tabs when an error is found.

This commit is contained in:
Cameron
2014-10-06 17:32:36 -07:00
parent 877fad903a
commit ad0491c901
4 changed files with 69 additions and 30 deletions

View File

@@ -267,6 +267,8 @@ class usersettings_shortcodes extends e_shortcode
{
$sql = e107::getDb();
$tp = e107::getParser();
$frm = e107::getForm();
$qry = "
SELECT * FROM #user_extended_struct
@@ -428,7 +430,7 @@ class usersettings_shortcodes extends e_shortcode
if(defined($fname)) $fname = constant($fname);
$fname = $tp->toHTML($fname, "", "emotes_off, defs");
if($fInfo['user_extended_struct_required'] == 1)
if($fInfo['user_extended_struct_required'] == 1 && !deftrue('BOOTSTRAP'))
{
$fname = str_replace("{FIELDNAME}", $fname, $REQUIRED_FIELD);
}