]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP1832897 FM Editor fieldOptions sanity check
authorBill Erickson <berickxx@gmail.com>
Thu, 29 Aug 2019 15:58:20 +0000 (11:58 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 4 Sep 2019 02:33:26 +0000 (19:33 -0700)
commitb1f14215e18f52fc1f6a2413888badfc9ca8bc1c
tree364998fe2ef6b8a2204116366761ac8478c14bee
parentf508a393cd6949d6487b48f5e813504275bb0541
LP1832897 FM Editor fieldOptions sanity check

If the caller sets the fieldOptions property to null/undefined the FM
editor will throw a JS error (field.isRequired is not a function) and fail
to render properly.  This adds a sanity check to the fieldOptions value.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts