From: Moritz Bunkus Date: Thu, 9 Jan 2014 15:04:34 +0000 (+0100) Subject: Verknüpfte Belege: nur Arbeitskopien bei Pflichtenheften anzeigen X-Git-Tag: release-3.2.0beta~467^2~57 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6341560f99041ccdc03a2bbfb542a45ce005f970;p=kivitendo-erp.git Verknüpfte Belege: nur Arbeitskopien bei Pflichtenheften anzeigen --- 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;