Skip to content

Commit

Permalink
Merge pull request #5 from chuckpearce/patch-2
Browse files Browse the repository at this point in the history
Fix for ST Android 1.7.x Release πŸ‘
  • Loading branch information
ethayer committed Apr 4, 2015
2 parents 2d59f18 + 6d99d04 commit 542fa56
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions user-lock-manager.smartapp.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ def setupPage() {
}
section("Users") {
for (int i = 1; i <= settings.maxUsers; i++) {
href(name: "toUserPage", page: "userPage", params: [number: i], required: false, description: userHrefDescription(i), title: userHrefTitle(i), state: userPageState(i) )
href(name: "toUserPage$i", page: "userPage", params: [number: i], required: false, description: userHrefDescription(i), title: userHrefTitle(i), state: userPageState(i) )
}
}
}
}

def userPage(params) {
dynamicPage(name:"setupPage", title:"User Settings") {
def i = params.number
def i = params.number.toString().replaceAll('.0','').toInteger()
section("Code #${i}") {
input(name: "userName${i}", type: "text", title: "Name for User", required: true, defaultValue: settings."userName${i}")
input(name: "userCode${i}", type: "text", title: "Code (4 to 8 digits)", required: false, defaultValue: settings."userCode${i}")
Expand Down Expand Up @@ -864,4 +864,3 @@ private sendMessage(msg) {
sendSms(phone, msg)
}
}

0 comments on commit 542fa56

Please sign in to comment.