Small fix  ( Ensure that priority field is an integer - Plugin manager)
(cherry picked from commit 7052c98)
(cherry picked from commit 0bad9a6)