[GIT] Evergreen ILS branch rel_3_13 updated. f7e96085cb9e212a07963533939be4f14a2af9bd

This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Evergreen ILS". The branch, rel_3_13 has been updated via f7e96085cb9e212a07963533939be4f14a2af9bd (commit) from 44c3dc0482fdf4d103d798ac9f2e7b8bd2342adb (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit f7e96085cb9e212a07963533939be4f14a2af9bd Author: Stephanie Leary <stephanie.leary@equinoxoli.org> Date: Wed Mar 12 00:42:13 2025 +0000 LP2084929 Undo/redo for MARC fixed and LDR fields Fixes an error that was preventing the undo and redo actions from completing in the MARC rich editor's fixed fields and LDR. Release-note: Fixes undo/redo in MARC rich editor fixed fields and LDR. Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org> Signed-off-by: Llewellyn Marshall <llewellyn.marshall@dncr.nc.gov> Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org> diff --git a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.ts b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.ts index 9c058f74d5..c27363d790 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.ts @@ -153,8 +153,10 @@ implements OnInit, AfterViewInit, OnDestroy { } selectText(req?: FieldFocusRequest) { - this.field.hasFocus = true; - this.field.isDraggable = false; + if (this.field && typeof this.field == 'object') { + this.field.hasFocus = true; + this.field.isDraggable = false; + } if (!this.bigText) { this.editInput?.select(); diff --git a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor-context.ts b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor-context.ts index 136dc02cb3..cfce36f413 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor-context.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor-context.ts @@ -301,7 +301,7 @@ export class MarcEditContext { } trackMoveUndo(field: MarcField, prevIndex: number) { - const position: FieldFocusRequest = {fieldId: field.fieldId, target: 'move'}; + const position: FieldFocusRequest = {fieldId: field?.fieldId, target: 'move'}; const action = new StructUndoRedoAction(); action.field = field; ----------------------------------------------------------------------- Summary of changes: .../eg2/src/app/staff/share/marc-edit/editable-content.component.ts | 6 ++++-- Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor-context.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) hooks/post-receive -- Evergreen ILS
participants (1)
-
Git User