Issue #18757 Fix REST flag for ORM.