From 7aa7cf54cceddea3c86c231a3704d82e7ed30d7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Mon, 13 Feb 2017 09:57:59 +0100 Subject: [PATCH] =?utf8?q?WebDAV=20Pfad-Name=20im=20Dialog=20ge=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Referenz ist ein ungünstiges Freitext-Feld, um WebDAV Pfade eindeutig anzulegen. Transaktions-, bzw. die Buchungsnummer im Buchungsjournal ist hier eindeutig. --- bin/mozilla/gl.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 14a58b4a6..f62b74b1f 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -308,10 +308,10 @@ sub edit { $form->{show_details} = $myconfig{show_form_details} unless defined $form->{show_details}; - if ($form->{reference} && $::instance_conf->get_webdav) { + if ($form->{id} && $::instance_conf->get_webdav) { my $webdav = SL::Webdav->new( type => 'general_ledger', - number => $form->{reference}, + number => $form->{id}, ); my $webdav_path = $webdav->webdav_path; my @all_objects = $webdav->get_all_objects; @@ -1266,7 +1266,7 @@ sub post { post_transaction(); if ($::instance_conf->get_webdav) { SL::Webdav->new(type => 'general_ledger', - number => $form->{reference}, + number => $form->{id}, )->webdav_path; } -- 2.20.1