From 0db760fd70816d2199a188799534c3ef3d8d36ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 2 Jun 2017 11:24:49 +0200 Subject: [PATCH] =?utf8?q?Part=20Controller=20-=20Artikelnummern=20immer?= =?utf8?q?=20=C3=A4nderbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit behebt #264 (redmine) --- SL/Controller/Part.pm | 2 -- templates/webpages/part/_basic_data.html | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index 267c5d58d..10c6c10b6 100644 --- a/SL/Controller/Part.pm +++ b/SL/Controller/Part.pm @@ -681,8 +681,6 @@ sub parse_form { my $params = delete($::form->{part}) || { }; delete $params->{id}; - # never overwrite existing partnumber for parts in use, should be a read-only field in that case anyway - delete $params->{partnumber} if $self->part->partnumber and $self->part->used_in_record; $self->part->assign_attributes(%{ $params}); $self->part->bin_id(undef) unless $self->part->warehouse_id; diff --git a/templates/webpages/part/_basic_data.html b/templates/webpages/part/_basic_data.html index a923d9134..38b15d2e5 100644 --- a/templates/webpages/part/_basic_data.html +++ b/templates/webpages/part/_basic_data.html @@ -19,9 +19,7 @@ - [% SET readonly = 1 %] - [%- IF !SELF.part.id or !SELF.part.used_in_record %][% readonly = 0 %][% END %] - + @@ -239,4 +237,3 @@
[% 'Part Number' | $T8 %][% L.input_tag("part.partnumber", SELF.part.partnumber, size=40, readonly=readonly class="initial_focus") %][% L.input_tag("part.partnumber", SELF.part.partnumber, size=40, class="initial_focus") %]
[% 'Part Classification' | $T8 %]
- -- 2.20.1