Bug #2249: Fix period and period_number in the service view
(cherry picked from commit 970c34464a1d5a71f3a9dfdd3d77d62883400857)