View Issue Details

IDProjectCategoryView StatusLast Update
0012609mantisbtplug-inspublic2010-12-15 23:32
Reporternjones Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
OSUbuntu 
Product Version1.2.3 
Summary0012609: 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');

TagsNo tags attached.

Activities

njones

njones

2010-12-15 23:32

reporter   ~0027614

Implemented work around, using an array variable now in matis_config_table.
This bypasses mantis dynamic casting logic :)