HomeHelpTrac

Changeset 15947


Ignore:
Timestamp:
02/05/12 23:25:57 (4 months ago)
Author:
Alexander Trofimov
Message:

Forms: attributes for radio_set and checkbox_set types were processed wrong way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/base/scripts/BxBaseFormView.php

    r15907 r15947  
    879879 
    880880    function _genInputsSet(&$aInput, $sType, $mixedCurrentVal, $sIsCheckedFunc, $sNameAppend = '') { 
    881         $aAttrs = empty($aInput['attrs']) ? array() : $aInput['attrs']; 
     881 
     882        $aAttrs = empty($aInput['attrs']) || 'radio_set' == $aInput['type'] || 'checkbox_set' == $aInput['type'] ? array() : $aInput['attrs']; 
    882883 
    883884        $aAttrs['name']  = $aInput['name']; 
     
    906907                    'checked' => $this->$sIsCheckedFunc($sValue, $mixedCurrentVal), 
    907908                    'label'   => $sLabel, 
     909                    'attrs'   => !empty($aInput['attrs']) && ('radio_set' == $aInput['type'] || 'checkbox_set' == $aInput['type']) ? $aInput['attrs'] : false, 
    908910                ); 
    909911 
Note: See TracChangeset for help on using the changeset viewer.