View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012609 | mantisbt | plug-ins | public | 2010-12-14 17:37 | 2010-12-15 23:32 |
Reporter | njones | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
OS | Ubuntu | ||||
Product Version | 1.2.3 | ||||
Summary | 0012609: Cant store numbered strings in config variables | ||||
Description | I have developed a custom plug-in which requires a mobile number to be stored in a plug-in configuration variable. The problem lies in that when i try to call plugin_config_set() it type casts it as a number instead of a string. Type 1 instead of Type 3. The problem seems to lie in the config_api where is_numeric() is used in config_set to determine the type and dynamically cast the type stored in the database. This causes problems as it drops any leading zero's from the mobile number. | ||||
Steps To Reproduce | plugin_config_set('sla_mobile_to', '0411787666'); | ||||
Tags | No tags attached. | ||||