Commit 632ee10f authored by Tommaso Basilici's avatar Tommaso Basilici
Browse files

Update interface/web/client/client_edit.php

parent 596e30c0
......@@ -427,13 +427,14 @@ class page_action extends tform_actions {
// lock and cancel
if(!isset($this->dataRecord['locked'])) $this->dataRecord['locked'] = 'n';
if(isset($conf['demo_mode']) && $conf['demo_mode'] != true && $this->dataRecord["locked"] != $this->oldDataRecord['locked']) {
$lock = functions::func_client_lock($this->id,$this->dataRecord["locked"]);
if(isset($conf['demo_mode']) && $conf['demo_mode'] != true && $this->dataRecord["locked"] != $this->oldDataRecord['locked'])
{
$lock = $app->functions->func_client_lock($this->id,$this->dataRecord["locked"]);
}
if(!isset($this->dataRecord['canceled'])) $this->dataRecord['canceled'] = 'n';
if(isset($conf['demo_mode']) && $conf['demo_mode'] != true && $this->dataRecord["canceled"] != $this->oldDataRecord['canceled']) {
$cancel = functions::func_client_cancel($this->id,$this->dataRecord["canceled"]);
$cancel = $app->functions->func_client_cancel($this->id,$this->dataRecord["canceled"]);
}
// language changed
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment