File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1276,9 +1276,13 @@ sub getFieldData {
1276
1276
my $attr = $self -> meta-> find_attribute_by_name( $property );
1277
1277
my $fieldType = $attr -> fieldType;
1278
1278
my $fieldOverrides = $overrides -> { $property } || {};
1279
+ my $noFormPost = $attr -> noFormPost;
1280
+ if (ref $noFormPost eq ' CODE' ) {
1281
+ $noFormPost = $self -> $noFormPost ;
1282
+ }
1279
1283
my $fieldHash = {
1280
1284
fieldType => $fieldType ,
1281
- noFormPost => $attr -> noFormPost,
1285
+ noFormPost => $noFormPost ,
1282
1286
tab => " properties" ,
1283
1287
%{ $self -> getFormProperties( $property ) },
1284
1288
%{ $overrides },
@@ -1878,6 +1882,7 @@ exception.
1878
1882
sub loadModule {
1879
1883
my ($class , $className ) = @_ ;
1880
1884
if ($className !~ / ^WebGUI::Asset(?:::\w +)*$ / ) {
1885
+ warn $className ;
1881
1886
WebGUI::Error::InvalidParam-> throw(param => $className , error => " Not a WebGUI::Asset class" ,);
1882
1887
}
1883
1888
(my $module = $className . ' .pm' ) =~ s { ::} { /} g ;
You can’t perform that action at this time.
0 commit comments