Fixed CORE-2106 for while edit an classpage itemType field missing

@yamunaBQ  use the else if  statement to check the class type