# Patches

> Optional webtrees core patches

---

**The patches can be applied additionally — the module also works without them!**

The `util` subfolder contains minor patches for the webtrees core. These are [diff-files](https://www.gnu.org/software/diffutils/) that can be easily applied or removed using shell from within the installed module folder (necessary for auto-detecting webtrees sources):

```bash
Usage: util/wt-patch.sh [-R] [FILTER]
  -R                  undo Patch (patch -R)
  FILTER              '*' for all or specific (e.g. '01')
```

Don't forget to reapply the patches after updating webtrees.

These are minor bug fixes or functional enhancements — usually in a single file — that are intended to bridge the gap until they are officially fixed/implemented in the webtrees core.

| # | Description | Applies to version |
| :--: | :---- | :---: |
| P001 | Backlink for level 1 shared notes [#5181](https://github.com/fisharebest/webtrees/issues/5181) — not necessary anymore except you would like to have an additional edit link. *app/Fact.php* | 2.2.1 - 2.2.6 |
| P002 | Enable headContent/bodyContent for this module on admin backend in order to show the context help link [#5214](https://github.com/fisharebest/webtrees/issues/5214). *resources/views/layouts/administration.phtml* | 2.2.1 - 2.2.6 |
| ~~P003~~ | Record has multiple uid fields [#4828](https://github.com/fisharebest/webtrees/issues/4828). *app/Services/GedcomEditService.php* | 2.2.1 |
