@Vlad7Osclass does not generate such error and does not do such validation on the fly.More, it is probably even not possible to pass such condition into validation script.Solution would have to be handled by theme itself, not allowing selection of parent categories.