For running xapian indexer it is necessary to configure it to use the same database for indexing as defined in the user interface on plugin settings.
In order to make the configuration of xapian indexer some kind of persistence the command line options in `redmine_dmsf/extra/xapian_indexer.rb` could be extended by providing a further option for the index database path:
```shell
ruby redmine_dmsf/extra/xapian_indexer.rb -d <path/to/my/custom/index/database>
```
With this additional option it is possible to move the index database outside of redmine root to keep it even after running updates. Furthermore, custom configuration in `redmine_dmsf/extra/xapian_indexer.rb` won't be overridden when updating this plugin.
Dmsf custom field settings are extended with a further attribute called
dmsf_not_inheritable. This attribute is added to Redmine
CustomField.safe_attributes.
Hence dmsf_not_inheritable will be saved now!
It will make sure that a pending link will be
deleted from the query and hence not displayed
to the user.
A pending link has no project assigned. For those
links the case statement in DmsfQuery#dmsf_nodes
will now return true what causes the link to be
deleted from the query result.
This change stablizes the query with DmsfLink objects since they could
have stored a project_id of -1 causing a nil error.
This may happen when the linking of a dms document with an issue was
not successful or aborted as observed with https://github.com/danmunn/redmine_dmsf/pull/1466.
The English translation "Approve document" fits better in the workflow
steps than "Approval" only:
1. "Assign workflow"
2. "Start workflow"
3. "Approve document" (Approve x Reject x Delegate)
4. "" (As soon as the workflow is finished, there is no item related to the workflow in the menu.)
The German translation is modified accordingly.