Commit e1e8920
committed
fix(signature-footer): fall back to system default when inherited template is empty
When all admin-level customizations are deleted, the policy's
inheritedValue has an empty footerTemplate. Previously resolveEditorProps
unconditionally overrode baseEditorProps.inheritedTemplate with that
empty string, silently discarding the system-level default injected by
PHP via loadState('libresign', 'footer_template', '').
Now resolveEditorProps only overrides inheritedTemplate when the
inherited level provides a non-empty custom footer template. Otherwise
it falls back to baseEditorProps.inheritedTemplate, preserving the real
system default so the user reset button always restores a meaningful
value instead of blank.
Signed-off-by: Vitor Mattos <[email protected]>1 parent 8090aed commit e1e8920
1 file changed
Lines changed: 9 additions & 3 deletions
File tree
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | | - | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
0 commit comments