Bug #3537 » 3537_rev1.patch
| 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;
|
||
- « Previous
- 1
- 2
- Next »