Fix product edit page warnings

PR to fix warning errors in issue #777