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

Update interface/web/client/client_edit.php

parent 596e30c0
Pipeline #8348 passed with stage
in 7 minutes and 55 seconds
......@@ -426,15 +426,16 @@ 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($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"]);
}
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 = $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 = $app->functions->func_client_cancel($this->id,$this->dataRecord["canceled"]);
}
// language changed
if(isset($conf['demo_mode']) && $conf['demo_mode'] != true && isset($this->dataRecord['language']) && $this->dataRecord['language'] != '' && $this->oldDataRecord['language'] != $this->dataRecord['language']) {
......
Markdown is supported
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