Put hard stop on changing a copy status to/from a "magic" system status
via template.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
<ng-template #noEditStat>
<eg-batch-item-attr label="Status" i18n-label [readOnly]="true"
- [labelCounts]="itemAttrCounts('status')">
+ name="status" [labelCounts]="itemAttrCounts('status')">
</eg-batch-item-attr>
</ng-template>
</div>
return;
}
+ // Put a hard-stop on modifying magic copy statuses.
+ // We can get here by applying a copy template.
+ if (field === 'status' && (
+ this.volcopy.copyStatIsMagic(copy.status()) ||
+ this.volcopy.copyStatIsMagic(value))) {
+ return;
+ }
+
copy[field](value);
copy.ischanged(true);
});