aboutsummaryrefslogtreecommitdiff
path: root/lib/Object/Groupware/Calendar.pm
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-09-02 21:03:48 +0200
committerJonas Smedegaard <dr@jones.dk>2024-09-02 21:03:48 +0200
commit97b0d01cbed7c4a2ce7ea029881b79bdb0d02ef5 (patch)
treee8c0c694f037ec456d5f9110adcc1eef9f8c330c /lib/Object/Groupware/Calendar.pm
parenta420a7c6cfe5004a0b6c43d471775919099de8c5 (diff)
avoid Object::Pad features once experimental...HEADmaster
Diffstat (limited to 'lib/Object/Groupware/Calendar.pm')
-rw-r--r--lib/Object/Groupware/Calendar.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Object/Groupware/Calendar.pm b/lib/Object/Groupware/Calendar.pm
index 28ae500..8d62e44 100644
--- a/lib/Object/Groupware/Calendar.pm
+++ b/lib/Object/Groupware/Calendar.pm
@@ -1,7 +1,7 @@
use v5.36;
#use Feature::Compat::Class 0.07;
-use Object::Pad 0.78 qw(:experimental(init_expr));
+use Object::Pad 0.78;
package Object::Groupware::Calendar 0.01;
@@ -15,13 +15,16 @@ use Encode qw(decode_utf8);
use Object::Groupware::Event;
-field $log = Log::Any->get_logger;
+field $log = undef;
# borrow from Data::ICal::new() signature
field $data : param = undef;
field $filename : param = undef;
ADJUST {
+ # TODO: use Object::Pad 0.07 and move this to field initializer
+ $log //= Log::Any->get_logger;
+
if ($data) {
if ( $data isa Data::ICal ) { }
else { $data = Data::ICal->new( data => $data ) }