Commit 2b5b7db
LP2052742 Assure ou setting resolves before checking canSave()
emitSaveChange() calls canSave(), which checks the library setting cat.require_call_number_labels.
However, since the library setting check is asynchronous, there's a chance that we get to canSave()
before we have the library setting value, so it uses the default (true) instead.
This commit uses .then() to make sure that we only call emitSaveChange() after the library setting
promise resolves and we have the actual setting value, rather than the default.
Release-Note: Fixes a race condition retrieving the cat.require_call_number_labels ou setting
Co-authored-by: Michele Morgan <[email protected]>
Signed-off-by: Jane Sandberg <[email protected]>
Signed-off-by: Shula Link <[email protected]>
Signed-off-by: Steven Mayo <[email protected]>
Signed-off-by: blake <[email protected]>
Signed-off-by: Jason Stephenson <[email protected]>
Signed-off-by: Terran McCanna <[email protected]>1 parent ba05b0b commit 2b5b7db
File tree
1 file changed
+14
-15
lines changed- Open-ILS/src/eg2/src/app/staff/cat/volcopy
1 file changed
+14
-15
lines changedLines changed: 14 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | 96 | | |
112 | 97 | | |
113 | 98 | | |
114 | 99 | | |
115 | 100 | | |
116 | 101 | | |
117 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
| |||
0 commit comments