Commit 36a975e9 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon
Browse files

Bug 1635503: Set standard id when selecting parent id for an element

behatnotneeded

Change-Id: I320e0ea1ff8bc14772aab47f006258e5a98bba55
(cherry picked from commit 762cdd9a)
parent 7f8e18ff
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -789,6 +789,12 @@ jQuery(function($) {
            if (peid_field) {
                peid_field.setValue(element.value);
            }
            // Also update the standard id to match the standard id of the parent
            var pid_field = editor.getEditor("root.standardelements." + index + ".standardid");
            if (pid_field) {
                var parentid = element.value.split('.');
                pid_field.setValue(parentid[0]);
            }
        }
    }