Changeset 1394
- Timestamp:
- 08/18/15 16:18:53 (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
r1365 r1394 228 228 229 229 230 foreach (@{ $forms->{$form}->{attrs} }) { 231 $new->{_attr}{$_} = $c->model('AttrFormsA', $_, ($object 232 ? ($object) 233 : ($base, $new->{otype}))) 234 or die "Cannot get attribute $_"; 230 if ($form) { 231 foreach (@{ $forms->{$form}->{attrs} }) { 232 $new->{_attr}{$_} = $c->model('AttrFormsA', $_, ($object 233 ? ($object) 234 : ($base, $new->{otype}))) 235 or die "Cannot get attribute $_"; 236 } 235 237 } 236 238 -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrFormsA.pm
r1348 r1394 113 113 114 114 # Force Array context: 115 my @attr_raw_value = $self->getValues; 115 my @attr_raw_value = $self->attr_raw_value; 116 if (!$self->multiple) { 117 push(@attr_raw_value, undef) unless(@attr_raw_value); 118 } 116 119 my @htmls = (); 117 120
Note: See TracChangeset
for help on using the changeset viewer.