- Timestamp:
- 06/19/19 10:52:53 (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Users.pm
r2259 r2264 230 230 my $base = $c->model('Accounts')->db; 231 231 232 $c->stash->{address} = $base->get_object('address', $arg); 233 $c->stash->{form} = $c->model('AttrForms', 'address', 234 $c->stash->{address}); 235 $c->stash->{form}->set_attrs; 232 if ($c->stash->{address} = $base->get_object('address', $arg)) { 233 $c->stash->{form} = $c->model('AttrForms', 'address', 234 $c->stash->{address}); 235 $c->stash->{form}->set_attrs; 236 } 236 237 } 237 238 -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm
r2256 r2264 299 299 $new->{form} = $form; 300 300 $new->{object} = $object if (ref $object); 301 $new->{base} = $base || (ref $object ? $object->base : undef) or return $self;301 $new->{base} = $base || (ref $object ? $object->base : $c->model('Accounts')->db); 302 302 $new->{otype} = ref $object ? $object->type : $object; 303 303 -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Attributes.pm
r2262 r2264 45 45 $attr_info->{_otype} = $otype; 46 46 $attr_info->{monitored} ||= $base->config('monitored')->{ lc( $otype . '.' . $attributes ) }; 47 $attr_info->{ro} = 1 if ($attr_info->{auto}); 47 $attr_info->{ro} = 1 if ($attr_info->{auto} && !defined($attr_info->{ro})); 48 $attr_info->{hide} = 1 if ($attr_info->{_name} =~ /^_/ && !defined($attr_info->{hide})); 48 49 49 50 return bless($attr_info, $class); -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm
r2262 r2264 1070 1070 otheraddress => { 1071 1071 ro => 1, 1072 auto => 1, 1073 }, 1074 _otheraddress => { 1075 ro => 1, 1076 hide => 1, 1072 multiple => 1, 1077 1073 reference => 'address', 1078 1074 get => sub { … … 1111 1107 }, 1112 1108 }, 1113 postalAddress => { auto => 1 }, 1109 postalAddress => { 1110 auto => 1, 1111 }, 1114 1112 _postalAddress => { 1115 1113 hide => 1,
Note: See TracChangeset
for help on using the changeset viewer.