From 185eec36515077b918cd9343c8dcaacca4c83793 Mon Sep 17 00:00:00 2001 From: scott1702 Date: Tue, 18 Aug 2015 17:30:15 +1200 Subject: [PATCH] fix heading fields only being upon creation Change text from 'step' to 'page' --- code/model/editableformfields/EditableFormHeading.php | 4 ++++ templates/Includes/UserFormProgress.ss | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/model/editableformfields/EditableFormHeading.php b/code/model/editableformfields/EditableFormHeading.php index 627d25d..c3274e2 100755 --- a/code/model/editableformfields/EditableFormHeading.php +++ b/code/model/editableformfields/EditableFormHeading.php @@ -87,4 +87,8 @@ class EditableFormHeading extends EditableFormField { public function getSelectorHolder() { return "$(\":header[data-id='{$this->Name}']\")"; } + + public function getLevel() { + return $this->getField('Level') ?: 3; + } } diff --git a/templates/Includes/UserFormProgress.ss b/templates/Includes/UserFormProgress.ss index 319ea78..0be1d19 100644 --- a/templates/Includes/UserFormProgress.ss +++ b/templates/Includes/UserFormProgress.ss @@ -1,7 +1,7 @@ <% if $Steps.Count > 1 %>