]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Auth/SessionValue.pm
SL::Controller::CustomerVendor::action_new in action_add umbenannt
[kivitendo-erp.git] / SL / Auth / SessionValue.pm
index 6bf65b9232a0bd64107edb642454e9ba96f3e081..cfaa6245cc1c26d40f08de20e3abf066cf5b5df1 100644 (file)
@@ -2,6 +2,10 @@ package SL::Auth::SessionValue;
 
 use strict;
 
+# Classes that overload stringification must be known before
+# YAML::Load() is called.
+use SL::Locale::String ();
+
 use Scalar::Util qw(weaken);
 use YAML;
 
@@ -33,6 +37,8 @@ sub get {
 
 sub get_dumped {
   my ($self) = @_;
+  no warnings 'once';
+  local $YAML::Stringify = 1;
   return YAML::Dump($self->get);
 }