I noted that my dropdownbox was never disabled during registration, even though it was set to disabled in the backend. In the 'edit-profile'-page, it was however disabled.
I edited: base \ components \ com_comprofiler \ comprofiler.php
And changed around line 667 the following:
$vardisabled = ($rowFields[$i]->readonly == 1) ? 'disabled="disabled"' : '';
$rowFieldValues->name] = moscomprofilerHTML::selectList( $Values, $rowFields[$i]->name."[]",
'class="inputbox" size="'.$rowFields[$i]->size.'" '.$multi. ' '. $vardisabled .' mosReq="'.$rowFields[$i]->required.'" mosLabel="'.getLangDefinition($rowFields[$i]->title).'"',
'fieldtitle', 'fieldtitle', $k);
This makes sure that a disabled="disabled" tag is inserted when the item is not editable for a user. Hope this helps anyone. Didnt think this over very carefully, so perhaps there is a better way or this is not a bug at all, but at least it solved my problem
Post edited by: T.T., at: 2006/03/07 11:34
Post edited by: T.T., at: 2006/03/07 11:37
Post edited by: T.T., at: 2006/03/07 11:43