X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6c9d43ef947091ae8191741f390ee7a5bed72d17..e998dd2f9cbfe2957484caee79bed2abc0762ec4:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index a0dbb91cc..099a6736e 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -2607,15 +2607,15 @@ sub mtime_ischanged { my ($self, $table, $option) = @_; return unless $self->{id}; - croak ("wrong call, no valid table defined") unless $table =~ /(oe|ar|ap|delivery_orders|parts)/; + croak ("wrong call, no valid table defined") unless $table =~ /^(oe|ar|ap|delivery_orders|parts)$/; my $query = "SELECT mtime, itime FROM " . $table . " WHERE id = ?"; my $ref = selectfirst_hashref_query($self, $self->get_standard_dbh, $query, $self->{id}); $ref->{mtime} ||= $ref->{itime}; if ($self->{lastmtime} && $self->{lastmtime} ne $ref->{mtime} ) { - my $etxt = ($option eq 'mail') ? "The document has been changed from other user. Please reopen it in another window and copy the changes to the new window" : - "The document has been changed from other user. No mail was sent. Please reopen it in another window and copy the changes to the new window"; + my $etxt = ($option eq 'mail') ? "The document has been changed by another user. Please reopen it in another window and copy the changes to the new window" : + "The document has been changed by another user. No mail was sent. Please reopen it in another window and copy the changes to the new window"; $self->error($main::locale->text($etxt)); ::end_of_request(); }