Project

General

Profile

Bug #3537 » 3537_rev1.patch

krileon, 25 June 2012 21:30

View differences:

components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php
case 'html':
case 'rss':
return str_replace( "\n", '<br />', parent::getField( $field, $user, $output, $reason, $list_compare_types ) );
case 'htmledit':
$fieldMaxLength = $this->getMaxLength( $field );
if ( $fieldMaxLength && defined( '_CB_VALIDATE_NEW' ) ) {
cbimport( 'cb.validator' );
cbValidator::addRule( "$( 'form[name=\"adminForm\"] textarea[name=\"" . $field->name . "\"]' ).rules( 'add', { maxlength: $fieldMaxLength } );" );
}
// no break here in purpose, we want fallthrough!
default:
return parent::getField( $field, $user, $output, $reason, $list_compare_types );
break;
(2-2/2)