Changeset 1549 for trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model
- Timestamp:
- 12/28/15 17:45:18 (9 years ago)
- Location:
- trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm
r1530 r1549 323 323 if ($label) { 324 324 return $label; 325 } elsif (my $hash = LATMOS::Accounts::Web->config->{attrs}{$attr}) {326 return $hash->{label};327 325 } else { 328 return $attr; 326 my $oattr = $self->base->attribute($self->otype, $attr); 327 return $oattr->{label} ? $oattr->{label}->() : $attr; 329 328 } 330 329 } -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrFormsA.pm
r1530 r1549 89 89 ($hint ? sprintf('title="%s"', $self->escape($hint)) : ''), 90 90 $self->escape($self->htmlname), 91 $self->escape($self-> hconfig('label')|| $self->htmlname),91 $self->escape($self->{label} || $self->htmlname), 92 92 ); 93 93 }
Note: See TracChangeset
for help on using the changeset viewer.