Changeset 1531

Show
Ignore:
Timestamp:
01/28/08 17:54:17 (6 months ago)
Author:
ewout
Message:

Do not show access restriction select box on invisible profile fields.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/profile/profile.config.php

    r1297 r1531  
    6666                                                                    "category" => __gettext("Basic details"), 
    6767                                                                    "col1" => true, 
    68                                                                     "invisible" => false, 
     68                                                                    "invisible" => true, 
    6969                                                                    "required" => false, 
    7070                                                                    "user_type" => "", 
  • devel/profile/profile.class.php

    r1297 r1531  
    276276 
    277277        $column1 = display_input_field(array("profiledetails[" . $fname . "]",$value->value,$ftype,$fname,@$value->ident,$page_owner)); 
    278         $column2 = "<label>". __gettext("Access Restriction:") ."<br />"; 
    279         $column2 .= run("display:access_level_select",array("profileaccess[".$fname . "]",$value->access)) . "</label>"; 
    280          
     278        if(!$finvisible) { 
     279          $column2 = "<label>". __gettext("Access Restriction:") ."<br />"; 
     280          $column2 .= run("display:access_level_select",array("profileaccess[".$fname . "]",$value->access)) . "</label>"; 
     281        } else { 
     282          $column2 = __gettext("Invisible field"); 
     283        } 
     284 
    281285        $run_result .=templates_draw(array( 
    282286                                           'context' => 'databox',