From 6341560f99041ccdc03a2bbfb542a45ce005f970 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 9 Jan 2014 16:04:34 +0100 Subject: [PATCH] =?utf8?q?Verkn=C3=BCpfte=20Belege:=20nur=20Arbeitskopien?= =?utf8?q?=20bei=20Pflichtenheften=20anzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/RecordLinks.pm | 2 +- SL/DB/Manager/RequirementSpec.pm | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/SL/Controller/RecordLinks.pm b/SL/Controller/RecordLinks.pm index cffbd94fc..8c2a6eba5 100644 --- a/SL/Controller/RecordLinks.pm +++ b/SL/Controller/RecordLinks.pm @@ -32,7 +32,7 @@ my %link_type_defaults = ( ); my @link_type_specifics = ( - { title => t8('Requirement spec'), type => 'requirement_spec', model => 'RequirementSpec', number => 'id', project => 'project', description => 'title', date => undef, filter => undef, }, + { title => t8('Requirement spec'), type => 'requirement_spec', model => 'RequirementSpec', number => 'id', project => 'project', description => 'title', date => undef, filter => 'working_copy_filter', }, { title => t8('Sales quotation'), type => 'sales_quotation', model => 'Order', number => 'quonumber', }, { title => t8('Sales Order'), type => 'sales_order', model => 'Order', number => 'ordnumber', }, { title => t8('Sales delivery order'), type => 'sales_delivery_order', model => 'DeliveryOrder', number => 'donumber', }, diff --git a/SL/DB/Manager/RequirementSpec.pm b/SL/DB/Manager/RequirementSpec.pm index daf9d6bad..2d54d769a 100644 --- a/SL/DB/Manager/RequirementSpec.pm +++ b/SL/DB/Manager/RequirementSpec.pm @@ -25,4 +25,8 @@ sub _sort_spec { }); } +sub working_copy_filter { + return (working_copy_id => undef); +} + 1; -- 2.20.1