Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Old Metric vitals Form #1629

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions interface/forms_admin/forms_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,6 @@

foreach ( $inDir as $fname )
{
// added 8-2009 by BM - do not show the metric vitals form as option since deprecated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great.

// also added a toggle in globals.php in case user wants the option to add this deprecated form
if (($fname == "vitalsM") && ($GLOBALS['disable_deprecated_metrics_form'])) continue;

if (stristr($fname, ".tar.gz") || stristr($fname, ".tar") || stristr($fname, ".zip") || stristr($fname, ".gz"))
$phpState = "PHP compressed";
else
Expand Down
13 changes: 3 additions & 10 deletions library/globals.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,16 +431,9 @@
),
'1',
xl('Applies to Vitals form')
)
,
'disable_deprecated_metrics_form' => array(
xl('Disable Old Metric Vitals Form'),
'bool', // data type
'1', // default = true
ahanipeitra1994 marked this conversation as resolved.
Show resolved Hide resolved
xl('This was the older metric-only Vitals form, now deprecated.')
),

'phone_country_code' => array(
) ,

'phone_country_code' => array(
xl('Telephone Country Code'),
'num',
'1', // default = North America
Expand Down