From a5f0e843849aad23fcbc4986699d36547aacd0e4 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 8 Jun 2015 11:54:44 -0400 Subject: Fix duplicate fixedDayEnable in polycom template --- config/templates/polycom-template.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua index 8bc6a70..ffdbc83 100644 --- a/config/templates/polycom-template.lua +++ b/config/templates/polycom-template.lua @@ -149,14 +149,15 @@ if tz then end if t.day then - -- there may be two of next line, Polycom uses first - xml_attr({ dstprefix, 'fixedDayEnable' }, true) + if pos == 'start' then + xml_attr({ dstprefix, 'fixedDayEnable' }, true) + end xml_attr({ dstprefix, pos, 'month' }, t.month) xml_attr({ dstprefix, pos, 'date' }, t.day) else - - -- there may be two of next line, Polycom uses first - xml_attr({ dstprefix, 'fixedDayEnable' }, false) + if pos == 'start' then + xml_attr({ dstprefix, 'fixedDayEnable' }, false) + end xml_attr({ dstprefix, pos, 'month' }, t.month) -- POSIX weekday is between 0 (Sun) and 6 (Sat) -- cgit v1.2.3