Skip to content

Commit

Permalink
MDL-75959 customfield: Correct inappropriate class import
Browse files Browse the repository at this point in the history
I suspect this was an incorrect tab completion import by an IDE which
was missed.
  • Loading branch information
andrewnicols committed Oct 11, 2022
1 parent 568e72e commit 7fc01a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions customfield/classes/privacy/provider.php
Expand Up @@ -33,7 +33,6 @@
use core_privacy\local\request\contextlist;
use core_privacy\local\request\writer;
use core_privacy\manager;
use Horde\Socket\Client\Exception;

/**
* Class provider
Expand Down Expand Up @@ -196,7 +195,7 @@ public static function export_customfields_data(approved_contextlist $contextlis
$field = array_key_exists($record->fieldid, $fields) ? $fields[$record->fieldid] : null;
$data = data_controller::create(0, $record, $field);
self::export_customfield_data($data, array_merge($subcontext, [$record->id]));
} catch (Exception $e) {
} catch (\Exception $e) {
// We store some data that we can not initialise controller for. We still need to export it.
self::export_customfield_data_unknown($record, $field, array_merge($subcontext, [$record->id]));
}
Expand Down

0 comments on commit 7fc01a9

Please sign in to comment.