Skip to content
Permalink
Browse files

Plans fixes

* Plans: CP html element fix
* Plans: CP components adding fix
  • Loading branch information...
sergejey committed Oct 6, 2019
1 parent 5d78f78 commit 52ceeeb922044ce87cf64b22b219f52bf3898447
@@ -83,6 +83,7 @@
SQLUpdate('plan_components',$component);
} else {
$component['ID']=SQLInsert('plan_components',$component);
$component_id = $component['ID'];
}
$out['OK']=1;
//$this->redirect("?view_mode=".$this->view_mode."&id=".$plan_id."&tab=".$this->tab);
@@ -60,6 +60,7 @@ function processProperties(&$properties)
} else {
$property['VALUE'] = $property['DEFAULT'];
}
$property['VALUE_HTML']=htmlspecialchars($property['VALUE']);
}
}
@@ -45,7 +45,7 @@
</select>
[#endif TYPE#]
[#if TYPE=="int" || TYPE=="text" || TYPE=="float"#]
<input type="text" name="property_[#NAME#]" value="[#VALUE#]" class="form-control" placeholder="[#DEFAULT#]">
<input type="text" name="property_[#NAME#]" value="[#VALUE_HTML#]" class="form-control" placeholder="[#DEFAULT#]">
[#endif TYPE#]
[#if TYPE=="rgb"#]
<input type="text" name="property_[#NAME#]" id="property_[#NAME#]" value="[#VALUE#]" class="form-control" placeholder="[#DEFAULT#]">

0 comments on commit 52ceeeb

Please sign in to comment.
You can’t perform that action at this time.