xyj70 / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Custom Provisioning Variables are not served #278

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Enter custom provisioning variables in v_vars table with a category of 
"Provision"
2.  Ensure the Provision template includes the variables with a surrounding 
vars {
3.  Request provisioning template via web

What is the expected output? What do you see instead?
The variables are not replaced

What version of the product are you using? On what operating system?
Centos 6.2, latest svn

Please provide any additional information below.
See app/provision/index.php line 45.  When the last variable selected starts 
with a "v_" then these variables work.

See Line 381 $var_name starts with v_ then replace provisioning vars.

Line 381 should be commented out.

Original issue reported on code.google.com by d...@helia.ca on 17 Jul 2012 at 8:47

GoogleCodeExporter commented 9 years ago
Also check the loop,  it seems when there is more than one variable specified 
for Provision,  One of the variables is not replaced - i.e. the loop doesn't 
complete.

Original comment by d...@helia.ca on 17 Jul 2012 at 9:00

GoogleCodeExporter commented 9 years ago
v_ was required in the name by design in system -> variables. However in the 
dev branch that is soon to be released as 3.1. The provision variables are now 
added to advanced -> default settings and can optionally added to domain 
settings.

Original comment by markjcrane@gmail.com on 12 Aug 2012 at 12:12