Skip to content

Commit

Permalink
Редактирование Alias, /2, /10
Browse files Browse the repository at this point in the history
По клику на названии метрики открывается строчка для редактирования доп.параметров метрики
  • Loading branch information
fandaymon committed Mar 15, 2020
1 parent fda7bc6 commit a887660
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/tuya/tuya_edit.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@
$properties[$i]['LINKED_PROPERTY']=trim(${'linked_property'.$properties[$i]['ID']});
global ${'linked_method'.$properties[$i]['ID']};
$properties[$i]['LINKED_METHOD']=trim(${'linked_method'.$properties[$i]['ID']});
global ${'alias'.$properties[$i]['ID']};
$properties[$i]['ALIAS']=trim(${'alias'.$properties[$i]['ID']});
global ${'dividedby10'.$properties[$i]['ID']};
$properties[$i]['DIVIDEDBY10']=${'dividedby10'.$properties[$i]['ID']};
global ${'dividedby2'.$properties[$i]['ID']};
$properties[$i]['DIVIDEDBY2']=${'dividedby2'.$properties[$i]['ID']};
SQLUpdate('tucommands', $properties[$i]);
if ($old_linked_object && $old_linked_object!=$properties[$i]['LINKED_OBJECT'] && $old_linked_property && $old_linked_property!=$properties[$i]['LINKED_PROPERTY']) {
removeLinkedProperty($old_linked_object, $old_linked_property, $this->name);
Expand Down

0 comments on commit a887660

Please sign in to comment.