# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/comprofiler.class.php +++ administrator/components/com_comprofiler/comprofiler.class.php @@ -3985,6 +3985,34 @@ } return $result; } + function commitTabsContents( &$user, &$postdata, $reason ) { + global $_CB_framework, $_PLUGINS; + + $fields = $this->_getTabFieldsDb( null, $user, $reason, null, false ); + $result = true; + foreach ( $fields as $field ) { + if ( ( ! ( ( $field->readonly > 0 ) && $_CB_framework->getUi() == 1 ) ) || ( $reason == 'register' ) || ( $reason == 'search' ) ) { + if ( ! $_PLUGINS->is_errors() ) { + $_PLUGINS->callField( $field->type, 'commitFieldDataSave', array( &$field, &$user, &$postdata, $reason ), $field ); + } + } + } + return $result; + } + function rollbackTabsContents( &$user, &$postdata, $reason ) { + global $_CB_framework, $_PLUGINS; + + $fields = $this->_getTabFieldsDb( null, $user, $reason, null, false ); + $result = true; + foreach ( $fields as $field ) { + if ( ( ! ( ( $field->readonly > 0 ) && $_CB_framework->getUi() == 1 ) ) || ( $reason == 'register' ) || ( $reason == 'search' ) ) { + if ( $_PLUGINS->is_errors() ) { + $_PLUGINS->callField( $field->type, 'rollbackFieldDataSave', array( &$field, &$user, &$postdata, $reason ), $field ); + } + } + } + return $result; + } function savePluginTabs( &$user, &$postdata ) { global $_PLUGINS;