File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
7.10.25
2
+ - fixed #12321: Error while deleting a group.
2
3
3
4
7.10.24
4
5
- fixed #12318: asset error causes asset manager to fail
Original file line number Diff line number Diff line change @@ -1625,8 +1625,11 @@ sub resetGroupFields {
1625
1625
# #Note, I did assets in SQL instead of using the API because you would have to
1626
1626
# #instanciate every version of the asset that used the group. This should be much quicker
1627
1627
ASSET: foreach my $assetClass ($db -> buildArray(' SELECT DISTINCT className FROM asset' )) {
1628
- next ASSET unless $db -> quickScalar( " SELECT COUNT(*) FROM asset WHERE className=?" , [$assetClass ] );
1629
- my $definition = WebGUI::Pluggable::instanciate($assetClass , ' definition' , [$session ]);
1628
+ my $definition = eval { WebGUI::Pluggable::instanciate($assetClass , ' definition' , [$session ]); };
1629
+ if ($@ ) {
1630
+ $session -> log -> error(" Unable to load className: " . $className . " when looking for asset definitions: " . $@ );
1631
+ next ASSET;
1632
+ }
1630
1633
SUBDEF: foreach my $subdef (@{ $definition }) {
1631
1634
next SUBDEF if exists $tableCache -> {$subdef -> {tableName }};
1632
1635
PROP: while (my ($fieldName , $properties ) = each %{ $subdef -> {properties } }) {
You can’t perform that action at this time.
0 commit comments